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
parent
10fefee380
commit
920fe4d156
|
@ -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>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{{.Content }}
|
||||
</header>
|
||||
<section class="posts-list">
|
||||
{{ range .Pages }}
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<article class="posts-list">
|
||||
<article>
|
||||
<a href="{{ .Permalink }}">
|
||||
|
|
Loading…
Reference in New Issue