From c698d944e6b18b4707d96385df9aa0b550d2ec81 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 22 Aug 2020 13:20:08 +0200 Subject: :tada: Initial commit --- layouts/page/archive.html | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 layouts/page/archive.html (limited to 'layouts/page/archive.html') diff --git a/layouts/page/archive.html b/layouts/page/archive.html new file mode 100644 index 0000000..c63544e --- /dev/null +++ b/layouts/page/archive.html @@ -0,0 +1,39 @@ +{{ define "body_class" }}2-column{{ end }} +{{ define "main" }} +
+ + {{ partial "sidebar/left.html" . }} + +
+
+

Categories

+
+
+ {{ range ($.Site.GetPage "taxonomyTerm" "categories").Pages }} + {{ partial "article-list/tile" (dict "context" . "size" "250x150") }} + {{ end }} +
+
+
+ + {{ $postSection := $.Site.Params.postSection }} + {{ $v1 := where .Site.RegularPages "Section" $postSection }} + {{ $v2 := where .Site.RegularPages "Params.hidden" "!=" true }} + {{ $filtered := $v1 | intersect $v2 }} + {{ range $filtered.GroupByDate "2006" }} + {{ $id := lower (replace .Key " " "-") }} +
+

{{ .Key }}

+
+ {{ range .Pages }} + {{ partial "article-list/compact" . }} + {{ end }} +
+
+ {{ end }} + + {{ partial "footer.html" . }} +
+
+ +{{ end }} \ No newline at end of file -- cgit v1.2.3