Add config to hide page data

This commit is contained in:
Will Faught
2023-01-28 18:24:59 -08:00
parent a2b36a4208
commit 388b7d757a
5 changed files with 24 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
{{ $authors := partial "paige/func-authors.html" . }}
{{ $authors := cond (.Param "paige.page.hide_authors" | not | not) "" (partial "paige/func-authors.html" .) }}
{{ $authorsclass := .Param "paige.page.authors_class" | default "text-center text-secondary" }}
{{ $gap := "mb-0" }}
{{ $date := .PublishDate }}
{{ $date := cond (.Param "paige.page.hide_date" | not | not) "" .PublishDate }}
{{ $dateclass := .Param "paige.page.date_class" | default "text-center text-secondary" }}
{{ with $authors }}