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,5 +1,6 @@
{{ with .Description }}
{{ $class := $.Param "paige.page.description_class" | default "lead text-center" }}
{{ $class := .Param "paige.page.description_class" | default "lead text-center" }}
{{ $description := cond (.Param "paige.page.hide_description" | not | not) "" (.Description | markdownify) }}
<p class="{{ $class }}">{{ . | markdownify }}</p>
{{ with $description }}
<p class="{{ $class }}">{{ . }}</p>
{{ end }}