Move paige_show_full_pages logic to list layout

master
Will Faught 3 years ago
parent 607b57bb5f
commit b77fcbccc6

@ -1,4 +1,6 @@
{{ define "main" }}
{{ if not .Params.paige_show_full_pages }}
{{ partial "paige-main.html" . }}
{{ end }}
{{ partial "paige-pages.html" . }}
{{ end }}

@ -6,7 +6,7 @@
{{ $title = .Site.Title }}
{{ end }}
{{ end }}
{{ if and $title (not .Params.paige_show_full_pages) }}
{{ if $title }}
<h1 class="{{ $class }} fw-bold text-center">
{{ with .Params.link }}
<a href="{{ . }}">{{ $title | markdownify }}</a>

Loading…
Cancel
Save