From 7caa7d42181ed6ffa4030dba28973a0a1fbe1b27 Mon Sep 17 00:00:00 2001 From: isaced Date: Sat, 4 Dec 2021 19:28:15 +0800 Subject: Add archive page support See #60 --- layouts/archives/single.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 layouts/archives/single.html (limited to 'layouts') diff --git a/layouts/archives/single.html b/layouts/archives/single.html new file mode 100644 index 0000000..4ba0a79 --- /dev/null +++ b/layouts/archives/single.html @@ -0,0 +1,27 @@ +{{ define "main" }} + +
+
+ {{ partial "single/title.html" . }} + {{ partial "single/header.html" . }} + +
+ {{ range (where (where .Site.Pages "IsPage" "=" true) "Params.hidden" "!=" true ).GroupByDate "2006" }} +

{{ .Key }}

+
    + {{ range .Pages }} +
  • + {{ .Date.Format "01/02" }} + {{ .Title }} +
  • + {{ end }} +
+ {{ end }} + +
+ + {{ partial "single/footer.html" . }} +
+
+ +{{ end }} \ No newline at end of file -- cgit v1.2.3