Add single page links to list pages showing full pages

This commit is contained in:
Will Faught
2022-12-17 22:40:45 -08:00
parent 1f2551e5ce
commit ef9795ca6c
2 changed files with 2 additions and 1 deletions

View File

@@ -4,5 +4,5 @@
{{ $class = "display-1" }}
{{ end }}
{{ $title := .Title | markdownify }}
<h1 class="{{ $class }} fw-bold text-center">{{ if .Params.link }}<a href="{{ .Params.link }}">{{ $title }}</a>{{ else }}{{ $title }}{{ 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 class="paigeheaderlink" href="{{ .RelPermalink }}"><i class="bi bi-link-45deg small"><span class="visually-hidden"></span></i></a>{{ end }}</h1>
{{ end }}