Assign template context to var

This commit is contained in:
Will Faught
2023-01-29 10:56:57 -08:00
parent 548af63634
commit 64e148ab6f
32 changed files with 262 additions and 199 deletions

View File

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