Add {description,title}_class config
This commit is contained in:
@@ -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 }}
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user