From 66eb897d4d812a76831e6113a1a2ecce0e53be43 Mon Sep 17 00:00:00 2001 From: eltrac Date: Sun, 8 Mar 2026 11:48:55 +0800 Subject: docs: move /posts/weekly -> /weekly, a standalone section --- layouts/weekly/section.html | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 layouts/weekly/section.html (limited to 'layouts/weekly/section.html') diff --git a/layouts/weekly/section.html b/layouts/weekly/section.html new file mode 100644 index 00000000..14bb4db4 --- /dev/null +++ b/layouts/weekly/section.html @@ -0,0 +1,45 @@ +{{ define "main" }} + + {{ $pages := .Pages }} + {{ $categories := slice }} + +
+ {{ partial "header.html" . }} + {{ partial "home/home-nav" . }} +
+
{{ .Content }}
+ + + {{ $remainingMonthsToOpen := 3 }} + {{ range $pages.GroupByDate "2006" -}} +
+ {{ partial "components/section-title" (dict + "Left" .Key + "Right" (T "archivePage.postCountAnnual" (len .Pages)) + )}} + + {{ range .Pages.GroupByDate "January" }} +
+

+ {{ .Key }} +

+ +
+ {{ $remainingMonthsToOpen = sub $remainingMonthsToOpen 1 }} + {{ end }} +
+ {{ end }} +
+
+ {{ partial "footer.html" . }} +{{ end }} -- cgit v1.2.3