Replace some page config prefixes with nesting

This commit is contained in:
Will Faught
2023-01-28 19:32:21 -08:00
parent 388b7d757a
commit 2c4f4324ff
6 changed files with 94 additions and 62 deletions

View File

@@ -1,5 +1,5 @@
{{ $class := .Param "paige.page.title_class" | default "display-5 fw-bold text-center" }}
{{ $title := cond (.Param "paige.page.hide_title" | not | not) "" (.Title | markdownify) }}
{{ $class := .Param "paige.page.title.class" | default "display-5 fw-bold text-center" }}
{{ $title := cond (.Param "paige.page.title.hide" | not) (.Title | markdownify) "" }}
{{ if $title }}
<h1 class="{{ $class }}">{{ if .Params.link }}<a href="{{ .Params.link }}">{{ $title }}</a>{{ else }}{{ $title }}{{ end }}{{ if .Scratch.Get "paige_show_full_pages" }}<a aria-label="Link to this section" class="paige-header-link" href="{{ .RelPermalink }}">#</a>{{ end }}</h1>