From 920fe4d1566b9755b2551854a6042beec8f8905a Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Sun, 24 May 2020 12:54:19 +0200 Subject: [PATCH] lists: sort list by reverse publication date Ensures that lists and sections are sorting the blog post by publication date, and reversely ordered. Term lists are sorted alphabetically, which is fine. Co-Authored-by: Igor Milhit --- layouts/_default/list.html | 2 +- layouts/_default/section.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index cf61417..3927db5 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -6,7 +6,7 @@ {{.Content}}
- {{ range .Pages }} + {{ range .Pages.ByPublishDate.Reverse }}
{{ .Page.Title }} diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 5e40327..7893dba 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -8,7 +8,7 @@ {{.Content }}
- {{ range .Pages }} + {{ range .Pages.ByPublishDate.Reverse }}