mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 20:15:25 +00:00
feat: add show_date page option to hide date
This commit is contained in:
1 parent
19ca4a39f2
commit
cc42eb4135
1 file changed
+1
-1
@@ -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" }}
|
||||
|
||||
Reference in new issue
Block a user