Explorar el Código

feat: add `show_date` page option to hide date

George Cushen hace 3 años
padre
commit
cc42eb4135
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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" }}