Refactor and overhaul page metadata

This commit is contained in:
Will Faught
2023-02-01 21:40:22 -08:00
parent 6f02b083f9
commit 061baff39e
6 changed files with 130 additions and 112 deletions

View File

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