Skip to content

Commit ffab29c

Browse files
committed
feat: optimize label display style
1 parent c1004d1 commit ffab29c

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

src/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ export function readTime(){
105105
const onScrollToTop = () => {
106106
const backToTop = document.getElementById("back-to-top");
107107
const backToDown = document.getElementById("back-to-down");
108-
console.log(window.scrollY)
109108
if (window.scrollY < 100) {
110109
backToTop?.classList.add("hidden");
111110
backToDown?.classList.add("hidden");

templates/assets/dist/main.iife.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/assets/dist/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/modules/featured-post-card.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
th:each="tag : ${post.tags}"
2929
th:href="@{${tag.status.permalink}}"
3030
th:title="${tag.spec.displayName}"
31-
th:text="'#'+${tag.spec.displayName}"
32-
class="cursor-pointer text-sm text-zinc-600 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-500"
31+
th:text="${tag.spec.displayName}"
32+
class="cursor-pointer text-sm underline text-zinc-600 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-500"
3333
>
3434
</a>
3535
</div>

templates/modules/post-card.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
th:each="tag : ${post.tags}"
4242
th:href="@{${tag.status.permalink}}"
4343
th:title="${tag.spec.displayName}"
44-
th:text="'#'+${tag.spec.displayName}"
45-
class="cursor-pointer text-sm text-zinc-600 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-500"
44+
th:text="${tag.spec.displayName}"
45+
class="cursor-pointer text-sm underline text-zinc-600 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-500"
4646
>
4747
</a>
4848
</div>

templates/modules/tag-filter.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ <h2 class="inline-flex items-center gap-2 text-base text-zinc-900 dark:text-zinc
88
th:each="tagItem,tagStat: ${tags}"
99
th:href="@{${tagItem.status.permalink}}"
1010
th:title="${tagItem.spec.displayName}"
11-
class="rounded bg-gray-100 px-1 py-0.5 text-sm text-zinc-900 hover:bg-gray-200 dark:bg-zinc-600 dark:text-zinc-50 dark:hover:bg-zinc-700 dark:hover:text-zinc-100"
11+
class="rounded bg-gray-100 px-1 py-0.5 text-sm hover:underline hover:bg-gray-200 dark:bg-zinc-600 dark:text-zinc-50 dark:hover:bg-zinc-700 dark:hover:text-zinc-100"
1212
th:classappend="(${tag} and ${tag.metadata.name == tagItem.metadata.name}) or (not ${tag} and ${tagStat.index == 0}) ? '!bg-gray-200 dark:!bg-zinc-700 dark:!text-zinc-100 ring-2 ring-gray-300 dark:ring-zinc-600' : ''"
1313
>
14-
<th:block th:text="'#'+${tagItem.spec.displayName}" />
14+
<th:block th:text="${tagItem.spec.displayName}" />
1515
<sup th:text="${tagItem.status.visiblePostCount}"></sup>
1616
</a>
1717
</div>

templates/modules/widgets/tags.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ <h2 class="inline-flex items-center gap-2 text-lg dark:text-zinc-50">
1919
th:each="tagItem : ${tags}"
2020
th:href="@{${tagItem.status.permalink}}"
2121
th:title="${tagItem.spec.displayName}"
22-
class="rounded bg-zinc-100 px-1 py-0.5 text-sm text-zinc-900 hover:bg-zinc-200 dark:bg-zinc-600 dark:text-zinc-50 dark:hover:bg-zinc-700 dark:hover:text-zinc-100"
22+
class="rounded bg-zinc-100 px-1 py-0.5 text-sm hover:bg-zinc-200 dark:bg-zinc-600 dark:text-zinc-50 dark:hover:bg-zinc-700 dark:hover:text-zinc-100"
2323
th:classappend="(${tag} and ${tag.metadata.name == tagItem.metadata.name}) ? '!bg-gray-200 dark:!bg-zinc-700 dark:!text-zinc-100 ring-2 ring-gray-300 dark:ring-zinc-600' : ''"
2424
>
25-
<th:block th:text="'#'+${tagItem.spec.displayName}" />
25+
<th:block th:text="${tagItem.spec.displayName}" />
2626
<sup th:text="${tagItem.status.visiblePostCount}"></sup>
2727
</a>
2828
</div>

0 commit comments

Comments
 (0)