Move page config under paige.page

This commit is contained in:
Will Faught
2023-01-28 16:01:36 -08:00
parent 1f7eca9b71
commit 2b05b8366d
5 changed files with 16 additions and 14 deletions

View File

@@ -1,8 +1,8 @@
{{ $authors := partial "paige/func-authors.html" . }}
{{ $authorsclass := .Param "paige.authors_class" | default "text-center text-secondary" }}
{{ $authorsclass := .Param "paige.page.authors_class" | default "text-center text-secondary" }}
{{ $gap := "mb-0" }}
{{ $date := .PublishDate }}
{{ $dateclass := .Param "paige.date_class" | default "text-center text-secondary" }}
{{ $dateclass := .Param "paige.page.date_class" | default "text-center text-secondary" }}
{{ with $authors }}
<p class="{{ if $date }} {{ $gap }} {{ end }} {{ $authorsclass }}">{{ . }}</p>

View File

@@ -1,5 +1,5 @@
{{ if .Content }}
{{ $class := $.Params.paige.content_class }}
{{ $class := $.Params.paige.page.content_class }}
<section class="paige-content">
{{ with $class }}

View File

@@ -1,5 +1,5 @@
{{ with .Description }}
{{ $class := $.Param "paige.description_class" | default "lead text-center" }}
{{ $class := $.Param "paige.page.description_class" | default "lead text-center" }}
<p class="{{ $class }}">{{ . | markdownify }}</p>
{{ end }}

View File

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