From 3f50451e2857abde4d0777f90816697304071bbb Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 27 Nov 2025 21:44:09 +0800 Subject: =?UTF-8?q?feat=EF=BC=9A=20new=20sections=20"pour"=20and=20"struct?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/struct/section.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 layouts/struct/section.html (limited to 'layouts/struct/section.html') diff --git a/layouts/struct/section.html b/layouts/struct/section.html new file mode 100644 index 00000000..183dec14 --- /dev/null +++ b/layouts/struct/section.html @@ -0,0 +1,37 @@ +{{ define "main" }} +
+ {{ partial "header.html" . }} +
+
{{ .Content }}
+ + {{ $remainingMonthsToOpen := 3 }} + {{ range (where site.RegularPages "Type" "eq" "struct").GroupByDate "2006" -}} +
+ {{ partial "components/section-title" (dict + "Left" .Key + "Right" (T "archivePage.postCountAnnual" (len .Pages)) + )}} + + {{ range .Pages.GroupByDate "January" }} +
+ +

+ {{ .Key }} + {{ T "archivePage.postCountMonthly" (len .Pages) }} +

+
+
    + {{ range .Pages }} + {{ partial "items/post-small" . }} + {{ end }} +
+
+ {{ $remainingMonthsToOpen = sub $remainingMonthsToOpen 1 }} + {{ end }} +
+ {{ end }} +
+
+ {{ partial "footer.html" . }} +{{ end }} -- cgit v1.2.3