summaryrefslogtreecommitdiff
path: root/layouts/section.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/section.html')
-rw-r--r--layouts/section.html10
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 }}>