diff --git a/README.md b/README.md index 38327679..704efaa4 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index ec17b78d..5ada74e2 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -1,6 +1,6 @@ +++ title = "Paige" -[paige.subpage] +[paige.subpages] disable_collections = true disable_pages = true disable_sections = true diff --git a/exampleSite/content/customizations/_index.md b/exampleSite/content/customizations/_index.md index 3e1f83d2..ce960fc9 100644 --- a/exampleSite/content/customizations/_index.md +++ b/exampleSite/content/customizations/_index.md @@ -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 diff --git a/exampleSite/content/customizations/show.md b/exampleSite/content/customizations/show.md index cf391e4a..088a4ae8 100644 --- a/exampleSite/content/customizations/show.md +++ b/exampleSite/content/customizations/show.md @@ -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 diff --git a/exampleSite/content/customizations/style.md b/exampleSite/content/customizations/style.md index dc26ebdc..48d2434a 100644 --- a/exampleSite/content/customizations/style.md +++ b/exampleSite/content/customizations/style.md @@ -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 diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 25d407c8..c836504c 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -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 diff --git a/layouts/partials/paige/list-item.html b/layouts/partials/paige/list-item.html index bb0ab720..9d7323f3 100644 --- a/layouts/partials/paige/list-item.html +++ b/layouts/partials/paige/list-item.html @@ -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) }}
{{ with $title }} diff --git a/layouts/partials/paige/list.html b/layouts/partials/paige/list.html index 985a9378..902ef342 100644 --- a/layouts/partials/paige/list.html +++ b/layouts/partials/paige/list.html @@ -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 }}