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}} {{.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> <article>
<a href="{{.Permalink}}">{{.Title}}</a> <a href="{{.Permalink}}">{{.Title}}</a>
{{ partial "lists-footer.html" . }} {{ partial "lists-footer.html" . }}

View File

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

View File

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