dates for lists

This commit is contained in:
Valentin Boettcher 2021-08-03 14:22:31 +02:00
parent 61bc320784
commit 7ea0a1e26b
No known key found for this signature in database
GPG key ID: E034E12B7AF56ACE

View file

@ -12,7 +12,7 @@
{{ range .Paginator.Pages }}
<li>
<div class="post-title">
{{ if eq $listtitle "Posts" }}
{{ if not (or (eq $listtitle "Categories") (eq $listtitle "Tags")) }}
{{ .Date.Format "2006-01-02" }} <a href="{{ .RelPermalink }}">{{.Title }}</a>
{{ else }}
<a href="{{ .RelPermalink }}">{{.Title }}</a>