summaryrefslogtreecommitdiff
path: root/layouts/section.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-15 22:17:33 +0800
committerEltrac <hi@guhub.cn>2025-07-15 22:17:33 +0800
commit871b63419a1bc1ce3ea0a2f576d3f74a750671d1 (patch)
tree3a73372e0d3b12e330afb4f3e0fff6d15d5f5822 /layouts/section.html
parent3803a41c7f8d3465e7c82b48633c2ad7e2e9cd33 (diff)
refactor: remove unused css and replace _pages.scss with unocss
Former-commit-id: 057a83271881ddb1f85932de4020c1fa43baa53f
Diffstat (limited to 'layouts/section.html')
-rw-r--r--layouts/section.html15
1 files changed, 9 insertions, 6 deletions
diff --git a/layouts/section.html b/layouts/section.html
index c051990e..3fafc08e 100644
--- a/layouts/section.html
+++ b/layouts/section.html
@@ -5,18 +5,21 @@
<!-- Post Archive List -->
{{ $remainingMonthsToOpen := 3 }}
{{ range (where site.RegularPages "Type" "eq" "posts").GroupByDate "2006" -}}
- <section class="posts-year-archive">
- <h1 class="posts-year-title">
+ <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
+ flex justify-between items-center">
{{ .Key }}
- <small class="font-mono">{{ T "archivePage.postCountAnnual" (len .Pages) }}</small>
+ <small class="font-mono font-secondary text-[0.8rem]">{{ T "archivePage.postCountAnnual" (len .Pages) }}</small>
</h1>
{{ range .Pages.GroupByDate "January" }}
<details class="posts-month-archive"{{ if gt $remainingMonthsToOpen 0 }} open{{ end }}>
- <summary>
- <h2 class="posts-month-title">
+ <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
+ flex justify-between items-center">
{{ .Key }}
- <small class="font-mono">{{ T "archivePage.postCountMonthly" (len .Pages) }}</small>
+ <small class="font-mono font-secondary text-[0.8rem]">{{ T "archivePage.postCountMonthly" (len .Pages) }}</small>
</h2>
</summary>
<div class="term-list">