From 3cb68b6d5231ac9932b521dee767aae19ae1ca60 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Mon, 14 Jul 2025 19:05:44 +0800 Subject: refactor: keep layouts folder structure up to standards Former-commit-id: 44c7def3f6958550ccf965971f1819c1d6c514f1 --- layouts/section.html | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 layouts/section.html (limited to 'layouts/section.html') diff --git a/layouts/section.html b/layouts/section.html new file mode 100644 index 00000000..c051990e --- /dev/null +++ b/layouts/section.html @@ -0,0 +1,53 @@ +{{ define "main" }} +
+ {{ partial "header.html" . }} +
+ + {{ $remainingMonthsToOpen := 3 }} + {{ range (where site.RegularPages "Type" "eq" "posts").GroupByDate "2006" -}} +
+

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

+ + {{ range .Pages.GroupByDate "January" }} +
+ +

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

+
+
+
    + {{ range .Pages }} +
  • +
    + + + {{ .Title }} + +
    +
    + {{ with .Params.categories }} + + {{ . }} + + {{ end }} +
    +
  • + {{ end }} +
+
+
+ {{ $remainingMonthsToOpen = sub $remainingMonthsToOpen 1 }} + {{ end }} +
+ {{ end }} +
+
+ {{ partial "footer.html" . }} +{{ end }} -- cgit v1.2.3