diff options
| author | Eltrac <hi@guhub.cn> | 2025-11-06 10:43:16 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-11-06 10:43:16 +0800 |
| commit | 1fafbca42b787fa00767f7170666c24dd768a6da (patch) | |
| tree | 75602fbbc9ab5500ebe271c81969b727c1066d2e /layouts/section.html | |
| parent | 2e139bd00a21f66d93d473e4b1aa007af6e24694 (diff) | |
feat: unify section titles
Former-commit-id: d5a29ffa1c93b3fded194400e62f118fb06c5df7
Diffstat (limited to 'layouts/section.html')
| -rw-r--r-- | layouts/section.html | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/layouts/section.html b/layouts/section.html index 7cb4681a..05e3fb91 100644 --- a/layouts/section.html +++ b/layouts/section.html @@ -6,12 +6,10 @@ {{ $remainingMonthsToOpen := 3 }} {{ 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-6 sticky top-0 bg-[var(--background-color)] z-1 - flex justify-between items-center"> - {{ .Key }} - <small class="font-mono text-secondary text-3">{{ T "archivePage.postCountAnnual" (len .Pages) }}</small> - </h1> + {{ partial "components/section-title" (dict + "Left" .Key + "Right" (T "archivePage.postCountAnnual" (len .Pages)) + )}} {{ range .Pages.GroupByDate "January" }} <details class="posts-month-archive"{{ if gt $remainingMonthsToOpen 0 }} open{{ end }}> |
