feat: add show_date page option to hide date

This commit is contained in:
George Cushen committed 2021-06-19 16:14:01 +01:00
1 parent 19ca4a39f2
commit cc42eb4135
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@
{{ end }}
{{ end }}
{{ if not (in (slice "event" "page") $page.Type) }}
{{ if not (in (slice "event" "page") $page.Type) | and (ne $page.Params.show_date false) }}
<span class="article-date">
{{ $date := $page.Lastmod.Format site.Params.date_format }}
{{ if eq $page.Type "publication" }}