Format template

master
Will Faught 2 years ago
parent 45ddf466d1
commit 2e43188ee8

@ -1,8 +1,10 @@
{{ if .Title }} {{ if .Title }}
{{ $class := "display-5" }} {{ $class := "display-5" }}
{{ $title := .Title | markdownify }}
{{ if .IsHome }} {{ if .IsHome }}
{{ $class = "display-1" }} {{ $class = "display-1" }}
{{ end }} {{ end }}
{{ $title := .Title | markdownify }}
<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 }} 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>
{{ end }} {{ end }}

Loading…
Cancel
Save