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}}
|
{{.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" . }}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<li>Catégories :
|
<li>Catégories :
|
||||||
<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>
|
||||||
|
|
Loading…
Reference in New Issue