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 <igor@milhit.ch>
pull/32/head
iGor milhit 2020-05-24 12:54:19 +02:00
parent 10fefee380
commit 920fe4d156
Signed by: igor
GPG Key ID: 692D97C3D0228A99
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
{{.Content}}
<article class="posts-list">
<!-- Ranges through content/posts/*.md -->
{{ range .Pages }}
{{ range .Pages.ByPublishDate.Reverse }}
<article class="posts-list">
<article>
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a>

View File

@ -8,7 +8,7 @@
{{.Content }}
</header>
<section class="posts-list">
{{ range .Pages }}
{{ range .Pages.ByPublishDate.Reverse }}
<article class="posts-list">
<article>
<a href="{{ .Permalink }}">