Add single page links to list pages showing full pages

master
Will Faught 3 years ago
parent 1f2551e5ce
commit ef9795ca6c

@ -2,6 +2,7 @@
{{ if .Params.paige_show_full_pages }} {{ if .Params.paige_show_full_pages }}
{{ $p := .Paginate .Pages }} {{ $p := .Paginate .Pages }}
{{ range $p.Pages }} {{ range $p.Pages }}
{{ .Scratch.Set "paige_show_full_pages" true }}
{{ partial "paige-article.html" . }} {{ partial "paige-article.html" . }}
{{ end }} {{ end }}
{{ if or $p.HasPrev $p.HasNext }} {{ if or $p.HasPrev $p.HasNext }}

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

Loading…
Cancel
Save