From c859eb3fd5ca7bdba293f59f34117bd807637ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=81scar=20M=2E=20Lage?= Date: Tue, 1 Mar 2022 00:03:14 +0100 Subject: [PATCH] Add: Special layout for archive section --- .../oscar/layouts/sections/archive.html | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/themes/oscar/layouts/sections/archive.html diff --git a/src/themes/oscar/layouts/sections/archive.html b/src/themes/oscar/layouts/sections/archive.html new file mode 100644 index 0000000..77eeb88 --- /dev/null +++ b/src/themes/oscar/layouts/sections/archive.html @@ -0,0 +1,23 @@ +{{ define "main" }} + +
+

Archive

+
+ + {{ .Content }} + + {{ range (where .Site.RegularPages "Type" "posts").GroupByDate "2006" }} +

{{ .Key }}

+

{{ len .Pages }} posts

+
    + {{ range .Pages }} +
  • {{ .Title }} - {{ .Date.Format "January 2" }}
  • + {{ end }} +
+ {{ end }} + +
+
+ +{{ end }} +