From 1fafbca42b787fa00767f7170666c24dd768a6da Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 6 Nov 2025 10:43:16 +0800 Subject: feat: unify section titles Former-commit-id: d5a29ffa1c93b3fded194400e62f118fb06c5df7 --- layouts/section.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'layouts/section.html') 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" -}}
-

- {{ .Key }} - {{ T "archivePage.postCountAnnual" (len .Pages) }} -

+ {{ partial "components/section-title" (dict + "Left" .Key + "Right" (T "archivePage.postCountAnnual" (len .Pages)) + )}} {{ range .Pages.GroupByDate "January" }}
-- cgit v1.2.3