Add titleclass page param
parent
2e43188ee8
commit
7b3d81cdab
@ -1,10 +1,6 @@
|
||||
{{ if .Title }}
|
||||
{{ $class := "display-5" }}
|
||||
{{ $class := .Params.paige.titleclass | default "display-5 fw-bold text-center" }}
|
||||
{{ $title := .Title | markdownify }}
|
||||
|
||||
{{ if .IsHome }}
|
||||
{{ $class = "display-1" }}
|
||||
{{ end }}
|
||||
|
||||
<h1 class="{{ $class }} fw-bold text-center">{{ 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>
|
||||
<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>
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue