Browse Source

feat: add `show_date` page option to hide date

George Cushen 3 years ago
parent
commit
cc42eb4135
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wowchemy/layouts/partials/page_metadata.html

+ 1 - 1
wowchemy/layouts/partials/page_metadata.html

@@ -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" }}