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
parent
817756034b
commit
36a334cab9
|
@ -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" . }}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<li>Catégories :
|
||||
<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>
|
||||
|
|
Loading…
Reference in New Issue