summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/partials/card.html
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-10-06 14:35:32 +0200
committerjaseg <git@jaseg.de>2023-10-06 14:35:32 +0200
commit2fd22e30ce176d8d8a641fd371ad1623b082eaaf (patch)
treea041f0bba09b9a37650cae0ef3ae3b52c00d65c8 /themes/conspiracy/layouts/partials/card.html
parent9afd55a603ddfabbfa79b66bbc8876d90cf9f5b8 (diff)
downloadblog-2fd22e30ce176d8d8a641fd371ad1623b082eaaf.tar.gz
blog-2fd22e30ce176d8d8a641fd371ad1623b082eaaf.tar.bz2
blog-2fd22e30ce176d8d8a641fd371ad1623b082eaaf.zip
template: Make projects sort by date
Diffstat (limited to 'themes/conspiracy/layouts/partials/card.html')
-rw-r--r--themes/conspiracy/layouts/partials/card.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/conspiracy/layouts/partials/card.html b/themes/conspiracy/layouts/partials/card.html
index 65ea2e7..d0d94c3 100644
--- a/themes/conspiracy/layouts/partials/card.html
+++ b/themes/conspiracy/layouts/partials/card.html
@@ -1,6 +1,6 @@
<div class="card">
{{- if .Title }}<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>{{- end }}
- {{- if .Date }}<strong>{{ .Date.Format "2006-01-02" }}</strong>{{- end }}
+ {{- if and .Date (not (isset (index .Ancestors 0).Params "hide_date")) }}<strong>{{ .Date.Format "2006-01-02" }}</strong>{{- end }}
<div class="summary">
{{ .Summary | safeHTML }}