From 36a334cab9d4e2bf746214571287d35a29bdf6eb Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Sat, 30 Jan 2021 23:15:48 +0100 Subject: [PATCH] list: fix date variable on the lists and sections * Restores the Publisdate displayed on posts lists instead of Date (creation date). * Restores the post-taxonomies class on the item list of the post information categories. Co-Authored-by: iGor milhit --- layouts/_default/list.html | 2 +- layouts/partials/lists-footer.html | 2 +- layouts/partials/post-info.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b04a93f..769aa9f 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -7,7 +7,7 @@ {{.Content}}
- {{ range .Pages }} + {{ range .Pages.ByPublishDate.Reverse }}
{{.Title}} {{ partial "lists-footer.html" . }} diff --git a/layouts/partials/lists-footer.html b/layouts/partials/lists-footer.html index 429c157..9a37e14 100644 --- a/layouts/partials/lists-footer.html +++ b/layouts/partials/lists-footer.html @@ -1,5 +1,5 @@