Rename paige.page to paige.pages

This commit is contained in:
Will Faught
2025-02-08 15:04:53 -08:00
parent 9d1a0a4229
commit 1403b769cd
11 changed files with 35 additions and 35 deletions

View File

@@ -1,11 +1,11 @@
{{ $page := . }}
{{ $edit := $page.Param "paige.page.edit_url" | and ($page.Param "paige.page.disable_edit" | not) }}
{{ $edit := $page.Param "paige.pages.edit_url" | and ($page.Param "paige.pages.disable_edit" | not) }}
{{ $first := templates.Exists "partials/paige/page-footer-first.html" }}
{{ $history := $page.Param "paige.page.history_url" | and ($page.Param "paige.page.disable_history" | not) }}
{{ $history := $page.Param "paige.pages.history_url" | and ($page.Param "paige.pages.disable_history" | not) }}
{{ $last := templates.Exists "partials/paige/page-footer-last.html" }}
{{ $next := $page.NextInSection | and ($page.Param "paige.page.disable_next" | not) }}
{{ $prev := $page.PrevInSection | and ($page.Param "paige.page.disable_prev" | not) }}
{{ $next := $page.NextInSection | and ($page.Param "paige.pages.disable_next" | not) }}
{{ $prev := $page.PrevInSection | and ($page.Param "paige.pages.disable_prev" | not) }}
{{ if $page.File }}
{{ if $edit }}

View File

@@ -1,23 +1,23 @@
{{ $page := . }}
{{ $alert := $page.Param "paige.alert" }}
{{ $authors := partial "paige/func-authors.html" $page | and ($page.Param "paige.page.disable_authors" | not) }}
{{ $authors := partial "paige/func-authors.html" $page | and ($page.Param "paige.pages.disable_authors" | not) }}
{{ $categories := $page.GetTerms "categories" }}
{{ $date := and $page.IsPage $page.PublishDate | and ($page.Param "paige.page.disable_date" | not) }}
{{ $description := $page.Description | markdownify | and ($page.Param "paige.page.disable_description" | not) }}
{{ $date := and $page.IsPage $page.PublishDate | and ($page.Param "paige.pages.disable_date" | not) }}
{{ $description := $page.Description | markdownify | and ($page.Param "paige.pages.disable_description" | not) }}
{{ $first := templates.Exists "partials/paige/page-header-first.html" }}
{{ $format := $page.Param "paige.date_format" | default ":date_long" }}
{{ $last := templates.Exists "partials/paige/page-header-last.html" }}
{{ $link := $page.Params.link }}
{{ $microdata := $page.Params.paige.page.microdata }}
{{ $microdata := $page.Params.paige.pages.microdata }}
{{ $normal := eq ($page.Param "paige.keyword_style" | default "text") "text" }}
{{ $series := $page.GetTerms "series" | and ($page.Param "paige.page.disable_series" | not) }}
{{ $series := $page.GetTerms "series" | and ($page.Param "paige.pages.disable_series" | not) }}
{{ $tags := $page.GetTerms "tags" }}
{{ $time := $page.ReadingTime | and ($page.Param "paige.page.disable_reading_time" | not) }}
{{ $title := $page.LinkTitle | markdownify | and ($page.Param "paige.page.disable_title" | not) }}
{{ $toc := and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) | and ($page.Param "paige.page.disable_toc" | not) }}
{{ $time := $page.ReadingTime | and ($page.Param "paige.pages.disable_reading_time" | not) }}
{{ $title := $page.LinkTitle | markdownify | and ($page.Param "paige.pages.disable_title" | not) }}
{{ $toc := and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) | and ($page.Param "paige.pages.disable_toc" | not) }}
{{ $keywords := sort (append $categories $tags) "LinkTitle" | and ($page.Param "paige.page.disable_keywords" | not) }}
{{ $keywords := sort (append $categories $tags) "LinkTitle" | and ($page.Param "paige.pages.disable_keywords" | not) }}
{{ if or $alert $authors $date $description $first $keywords $last $time $series $title $toc }}
<header class="mw-100" id="paige-page-header">

View File

@@ -1,14 +1,14 @@
{{ $page := . }}
{{ $auto := $page.Param "paige.page.disable_auto_schema" | not }}
{{ $pageBase := $page.Param "paige.page.base_schema" }}
{{ $auto := $page.Param "paige.pages.disable_auto_schema" | not }}
{{ $pageBase := $page.Param "paige.pages.base_schema" }}
{{ $siteBase := $page.Param "paige.site.base_schema" }}
{{ range $page.Param "paige.site.schemas" }}
<script type="application/ld+json">{{ merge $siteBase . | jsonify | safeJS }}</script>
{{ end }}
{{ range $page.Param "paige.page.schemas" }}
{{ range $page.Param "paige.pages.schemas" }}
<script type="application/ld+json">{{ merge $pageBase . | jsonify | safeJS }}</script>
{{ end }}

View File

@@ -5,7 +5,7 @@
{{ $first := templates.Exists "partials/paige/footer-first.html" }}
{{ $last := templates.Exists "partials/paige/footer-last.html" }}
{{ $license := $page.Param "paige.license" | markdownify | and ($page.Param "paige.site.disable_license" | not) }}
{{ $microdata := $page.Params.paige.page.microdata }}
{{ $microdata := $page.Params.paige.pages.microdata }}
{{ if $credit }}
{{ $credit = markdownify $credit }}