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}}
|
{{.Content}}
|
||||||
<article class="posts-list">
|
<article class="posts-list">
|
||||||
<!-- Ranges through content/posts/*.md -->
|
<!-- Ranges through content/posts/*.md -->
|
||||||
{{ range .Pages }}
|
{{ range .Pages.ByPublishDate.Reverse }}
|
||||||
<article class="posts-list">
|
<article class="posts-list">
|
||||||
<article>
|
<article>
|
||||||
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a>
|
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
{{.Content }}
|
{{.Content }}
|
||||||
</header>
|
</header>
|
||||||
<section class="posts-list">
|
<section class="posts-list">
|
||||||
{{ range .Pages }}
|
{{ range .Pages.ByPublishDate.Reverse }}
|
||||||
<article class="posts-list">
|
<article class="posts-list">
|
||||||
<article>
|
<article>
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
|
|
Loading…
Reference in New Issue