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 <igor@milhit.ch>
merge-requests/4/head
iGor milhit 2021-01-30 23:15:48 +01:00
parent 817756034b
commit 36a334cab9
Signed by: igor
GPG Key ID: 692D97C3D0228A99
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -1,5 +1,5 @@
<footer class="list-footer">
{{ .Date.Format "2006-01-02" }}
{{ .PublishDate.Format "2006-01-02" }}
{{ with .Params.categories }}
{{ range sort . }}
/ <a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>

View File

@ -7,7 +7,7 @@
<li>Catégories&#x202F;:
<ul>
{{ range sort . }}
<li><a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a></li>
<li class="post-taxonomies"><a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
</li>