From ef1800933b81aa22af3677e0e19c45107f103fb6 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 25 Aug 2021 19:41:15 +0200 Subject: [PATCH] Make new default listing and use original in posts --- layouts/_default/list.html | 29 ++++++++++------------------- layouts/posts/list.html | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 19 deletions(-) create mode 100644 layouts/posts/list.html diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 22c7f97..1f1611d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,22 +1,13 @@ {{ define "main" }} -
-
- {{ partial "content.html" . }} - - - {{ range .Pages.GroupByDate "2006-01" }} - {{ $month := print .Key "-01"}} - {{ $display := dateFormat "2006-01" $month }} -

- - - -

- - {{ range (sort .Pages "Date" "desc") }} - {{ partial "list_item.html" . }} - {{ end }} - {{ end }} -
+
+
+ {{ partial "content.html" . }} + {{ if .Content }} +
+ {{ end }} + {{ range .Pages.ByTitle }} + {{ partial "list_item.html" . }} + {{ end }}
+
{{ end }} diff --git a/layouts/posts/list.html b/layouts/posts/list.html new file mode 100644 index 0000000..22c7f97 --- /dev/null +++ b/layouts/posts/list.html @@ -0,0 +1,22 @@ +{{ define "main" }} +
+
+ {{ partial "content.html" . }} + + + {{ range .Pages.GroupByDate "2006-01" }} + {{ $month := print .Key "-01"}} + {{ $display := dateFormat "2006-01" $month }} +

+ + + +

+ + {{ range (sort .Pages "Date" "desc") }} + {{ partial "list_item.html" . }} + {{ end }} + {{ end }} +
+
+{{ end }}