Add {description,title}_class config

This commit is contained in:
Will Faught
2023-01-28 14:42:48 -08:00
parent 5d9cf618a5
commit 1f7eca9b71
3 changed files with 4 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
{{ with .Description }}
{{ $class := $.Params.paige.description_class | default "lead text-center" }}
{{ $class := $.Param "paige.description_class" | default "lead text-center" }}
<p class="{{ $class }}">{{ . | markdownify }}</p>
{{ end }}

View File

@@ -1,5 +1,5 @@
{{ if .Title }}
{{ $class := .Params.paige.title_class | default "display-5 fw-bold text-center" }}
{{ $class := .Param "paige.title_class" | default "display-5 fw-bold text-center" }}
{{ $title := .Title | markdownify }}
<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>