Rename paige.subpage to paige.subpages

master
Will Faught 5 months ago
parent f695fb5f01
commit 9d1a0a4229

@ -296,7 +296,7 @@ schemas = [] # Site JSON-LD schemas
# name = "Acme"
# url = "https://example.com"
[paige.subpage] # Subpages
[paige.subpages]
# Disable front matter values
disable_authors = false
@ -1205,7 +1205,7 @@ If you want a more minimal look,
try the following in `yoursite/hugo.toml`:
```toml
[params.paige.subpage]
[params.paige.subpages]
disable_authors = true
disable_date = true
disable_keywords = true
@ -1275,7 +1275,7 @@ To hide the collection, section, and page lists on the home page,
try the following in `yoursite/content/_index.md`:
```toml
[params.paige.subpage]
[params.paige.subpages]
disable_collections = true
disable_pages = true
disable_sections = true

@ -1,6 +1,6 @@
+++
title = "Paige"
[paige.subpage]
[paige.subpages]
disable_collections = true
disable_pages = true
disable_sections = true

@ -10,7 +10,7 @@ credit = "Paige Theme"
edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s"
history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s"
license = "MIT License"
[paige.subpage]
[paige.subpages]
disable_authors = false
disable_date = false
disable_keywords = false
@ -44,7 +44,7 @@ credit = "Paige Theme"
edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s"
history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s"
license = "MIT License"
[paige.subpage]
[paige.subpages]
disable_authors = false
disable_date = false
disable_keywords = false

@ -11,7 +11,7 @@ credit = "Paige Theme"
edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s"
history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s"
license = "MIT License"
[paige.subpage]
[paige.subpages]
disable_authors = false
disable_date = false
disable_keywords = false
@ -47,7 +47,7 @@ credit = "Paige Theme"
edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s"
history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s"
license = "MIT License"
[paige.subpage]
[paige.subpages]
disable_authors = false
disable_date = false
disable_keywords = false

@ -34,7 +34,7 @@ style = """
font-style: italic;
}
"""
[paige.subpage]
[paige.subpages]
disable_authors = false
disable_date = false
disable_keywords = false
@ -93,7 +93,7 @@ style = """
font-style: italic;
}
"""
[paige.subpage]
[paige.subpages]
disable_authors = false
disable_date = false
disable_keywords = false

@ -51,7 +51,7 @@ disable_toc = true
disable_breadcrumbs = true
disable_credit = true
[params.paige.subpage]
[params.paige.subpages]
disable_authors = true
disable_date = true
disable_keywords = true

@ -1,9 +1,9 @@
{{ $page := . }}
{{ $authors := partial "paige/func-authors.html" $page | and ($page.Parent.Param "paige.subpage.disable_authors" | not) }}
{{ $authors := partial "paige/func-authors.html" $page | and ($page.Parent.Param "paige.subpages.disable_authors" | not) }}
{{ $categories := $page.GetTerms "categories" }}
{{ $date := $page.PublishDate | and ($page.Parent.Param "paige.subpage.disable_date" | not) }}
{{ $description := $page.Description | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.subpage.disable_description" | not) }}
{{ $date := $page.PublishDate | and ($page.Parent.Param "paige.subpages.disable_date" | not) }}
{{ $description := $page.Description | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.subpages.disable_description" | not) }}
{{ $draft := $page.Draft }}
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}
{{ $flags := slice }}
@ -12,11 +12,11 @@
{{ $link := $page.RelPermalink }}
{{ $modified := and $page.PublishDate $page.Lastmod (lt $page.PublishDate $page.Lastmod) }}
{{ $normal := eq ($page.Parent.Param "paige.keyword_style" | default "text") "text" }}
{{ $series := $page.GetTerms "series" | and ($page.Parent.Param "paige.subpage.disable_series" | not) }}
{{ $summary := $page.Summary | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.subpage.disable_summary" | not) }}
{{ $series := $page.GetTerms "series" | and ($page.Parent.Param "paige.subpages.disable_series" | not) }}
{{ $summary := $page.Summary | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.subpages.disable_summary" | not) }}
{{ $tags := $page.GetTerms "tags" }}
{{ $time := $page.ReadingTime | and ($page.Parent.Param "paige.subpage.disable_reading_time" | not) }}
{{ $title := $page.LinkTitle | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.subpage.disable_title" | not) }}
{{ $time := $page.ReadingTime | and ($page.Parent.Param "paige.subpages.disable_reading_time" | not) }}
{{ $title := $page.LinkTitle | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.subpages.disable_title" | not) }}
{{ if $draft }}
{{ $flags = $flags | append "paige-draft" "paige-unpublished" }}
@ -39,7 +39,7 @@
{{ end }}
{{ $class := delimit (slice "paige-page" "w-100" | append $flags | uniq | sort) " " }}
{{ $keywords := sort (append $categories $tags) "LinkTitle" | and ($page.Parent.Param "paige.subpage.disable_keywords" | not) }}
{{ $keywords := sort (append $categories $tags) "LinkTitle" | and ($page.Parent.Param "paige.subpages.disable_keywords" | not) }}
<div class="{{ $class }}">
{{ with $title }}

@ -40,8 +40,8 @@
{{ end }}
{{ $collections := slice }}
{{ $pages := $page.RegularPages | and ($page.Param "paige.subpage.disable_pages" | not) }}
{{ $sections := $page.Sections | and ($page.Param "paige.subpage.disable_sections" | not) }}
{{ $pages := $page.RegularPages | and ($page.Param "paige.subpages.disable_pages" | not) }}
{{ $sections := $page.Sections | and ($page.Param "paige.subpages.disable_sections" | not) }}
{{ if $page.IsHome }}
{{ range $name, $taxonomy := site.Taxonomies }}
@ -51,7 +51,7 @@
{{ end }}
{{ end }}
{{ $collections = $collections | and ($page.Param "paige.subpage.disable_collections" | not) }}
{{ $collections = $collections | and ($page.Param "paige.subpages.disable_collections" | not) }}
{{ if and (not $pages) (in (slice "taxonomy" "term") $page.Kind) }}
{{ $pages = $page.Pages }}

Loading…
Cancel
Save