Move paige_show_full_pages logic to list layout
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
{{ if not .Params.paige_show_full_pages }}
|
||||||
{{ partial "paige-main.html" . }}
|
{{ partial "paige-main.html" . }}
|
||||||
|
{{ end }}
|
||||||
{{ partial "paige-pages.html" . }}
|
{{ partial "paige-pages.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
{{ $title = .Site.Title }}
|
{{ $title = .Site.Title }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if and $title (not .Params.paige_show_full_pages) }}
|
{{ if $title }}
|
||||||
<h1 class="{{ $class }} fw-bold text-center">
|
<h1 class="{{ $class }} fw-bold text-center">
|
||||||
{{ with .Params.link }}
|
{{ with .Params.link }}
|
||||||
<a href="{{ . }}">{{ $title | markdownify }}</a>
|
<a href="{{ . }}">{{ $title | markdownify }}</a>
|
||||||
|
Reference in New Issue
Block a user