summaryrefslogtreecommitdiff
path: root/layouts/section.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-17 11:25:10 +0800
committerEltrac <hi@guhub.cn>2025-07-17 11:25:10 +0800
commitec41236bc88a0762656413c38044ffa256bd93cb (patch)
tree2d6f685fbe9ebb998e29dfcc9d1db9289238c1fe /layouts/section.html
parent1160eda3a7de8ffaf1562e65187cec783081d491 (diff)
refactor: avoid using straight value in UnoCSS
Diffstat (limited to 'layouts/section.html')
-rw-r--r--layouts/section.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/section.html b/layouts/section.html
index b1602e6b..8d5f6c9b 100644
--- a/layouts/section.html
+++ b/layouts/section.html
@@ -7,19 +7,19 @@
{{ range (where site.RegularPages "Type" "eq" "posts").GroupByDate "2006" -}}
<section class="w-full">
<h1 class="border-b-2 border-b-solid border-[var(--border-color)]
- py-2 text-[1.5rem] sticky top-0 bg-[var(--background-color)] z-1
+ py-2 text-6 sticky top-0 bg-[var(--background-color)] z-1
flex justify-between items-center">
{{ .Key }}
- <small class="font-mono font-secondary text-[0.8rem]">{{ T "archivePage.postCountAnnual" (len .Pages) }}</small>
+ <small class="font-mono font-secondary text-3">{{ T "archivePage.postCountAnnual" (len .Pages) }}</small>
</h1>
{{ range .Pages.GroupByDate "January" }}
<details class="posts-month-archive"{{ if gt $remainingMonthsToOpen 0 }} open{{ end }}>
<summary class="flex items-center border-b border-b-dashed border-[var(--border-color)] py-2 px-1">
- <h2 class="text-[1.1rem] inline-block w-full m-0
+ <h2 class="text-size-lg inline-block w-full m-0
flex justify-between items-center">
{{ .Key }}
- <small class="font-mono font-secondary text-[0.8rem]">{{ T "archivePage.postCountMonthly" (len .Pages) }}</small>
+ <small class="font-mono font-secondary text-3">{{ T "archivePage.postCountMonthly" (len .Pages) }}</small>
</h2>
</summary>
<ul class="ps-0 flex flex-col gap-2 list-none leading-relaxed">