aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/templates/partials/postlist.html
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/templates/partials/postlist.html')
-rw-r--r--internal/web/templates/partials/postlist.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/web/templates/partials/postlist.html b/internal/web/templates/partials/postlist.html
index 91e248c..fce6291 100644
--- a/internal/web/templates/partials/postlist.html
+++ b/internal/web/templates/partials/postlist.html
@@ -6,7 +6,7 @@
<article class="post{{if .Image}} has-thumb{{end}}">
{{if .Image}}<a class="post-thumb" href="/{{.PageSlug}}/{{.Slug}}"><img src="/media/{{.Image}}" alt=""></a>{{end}}
<h2 class="post-title"><a href="/{{.PageSlug}}/{{.Slug}}">{{.Title}}</a></h2>
- {{if $.Data.theme.ShowDates}}<p class="post-date">{{postdate $.Data.theme.DateFormat .CreatedAt}}</p>{{end}}
+ {{if and $.Data.theme.ShowDates (not .HideDate)}}<p class="post-date">{{postdate $.Data.theme.DateFormat .CreatedAt}}</p>{{end}}
{{template "posttags" (dict "tags" .Tags "hash" $.Data.theme.TagHash)}}
<div class="post-body">{{html .Excerpt}}</div>
{{if .HasMore}}<p class="read-more"><a href="/{{.PageSlug}}/{{.Slug}}">{{t "Read more"}} &rarr;</a></p>{{end}}