From 5d56ca8ad23d3690c627238aa9fdb1f33e504625 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 27 Dec 2021 10:46:55 +0000 Subject: [PATCH] Change headings on list page to use proper hierarchy --- layouts/partials/list_item.html | 2 +- layouts/posts/list.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/list_item.html b/layouts/partials/list_item.html index 5f921d3..c02ca01 100644 --- a/layouts/partials/list_item.html +++ b/layouts/partials/list_item.html @@ -18,7 +18,7 @@ {{ end }}
-
{{ .Title }}
+

{{ .Title }}

{{ partial "content-details.html" . }}

{{ partial "summary.html" . }}

diff --git a/layouts/posts/list.html b/layouts/posts/list.html index edf1903..6cc87ba 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -14,11 +14,11 @@ {{ range .Pages.GroupByDate "2006-01" }} {{ $month := print .Key "-01" }} {{ $display := dateFormat "2006-01" $month }} -

+

-

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