Rename paige.list_page to subpage
This commit is contained in:
@@ -298,7 +298,7 @@ logo = "" # Example: "/logo.webp"
|
|||||||
managing_editor = "" # Example: "example@example.com (John Doe)"
|
managing_editor = "" # Example: "example@example.com (John Doe)"
|
||||||
web_master = "" # Example: "example@example.com (John Doe)"
|
web_master = "" # Example: "example@example.com (John Doe)"
|
||||||
|
|
||||||
[paige.list_page]
|
[paige.subpage]
|
||||||
disable_authors = false
|
disable_authors = false
|
||||||
disable_collections = false
|
disable_collections = false
|
||||||
disable_date = false
|
disable_date = false
|
||||||
@@ -1277,7 +1277,7 @@ If you want a more minimal look,
|
|||||||
try the following in `yoursite/hugo.toml`:
|
try the following in `yoursite/hugo.toml`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[params.paige.list_page]
|
[params.paige.subpage]
|
||||||
disable_authors = true
|
disable_authors = true
|
||||||
disable_date = true
|
disable_date = true
|
||||||
disable_keywords = true
|
disable_keywords = true
|
||||||
@@ -1347,7 +1347,7 @@ To hide the collection, section, and page lists on the home page,
|
|||||||
try the following in `yoursite/content/_index.md`:
|
try the following in `yoursite/content/_index.md`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[params.paige.list_page]
|
[params.paige.subpage]
|
||||||
disable_collections = true
|
disable_collections = true
|
||||||
disable_pages = true
|
disable_pages = true
|
||||||
disable_sections = true
|
disable_sections = true
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
+++
|
+++
|
||||||
title = "Paige"
|
title = "Paige"
|
||||||
[paige.list_page]
|
[paige.subpage]
|
||||||
disable_collections = true
|
disable_collections = true
|
||||||
disable_pages = true
|
disable_pages = true
|
||||||
disable_sections = true
|
disable_sections = true
|
||||||
|
@@ -10,7 +10,7 @@ credit = "Paige Theme"
|
|||||||
edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s"
|
edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s"
|
||||||
history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s"
|
history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s"
|
||||||
license = "MIT License"
|
license = "MIT License"
|
||||||
[paige.list_page]
|
[paige.subpage]
|
||||||
disable_authors = false
|
disable_authors = false
|
||||||
disable_date = false
|
disable_date = false
|
||||||
disable_keywords = false
|
disable_keywords = false
|
||||||
@@ -44,7 +44,7 @@ credit = "Paige Theme"
|
|||||||
edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s"
|
edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s"
|
||||||
history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s"
|
history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s"
|
||||||
license = "MIT License"
|
license = "MIT License"
|
||||||
[paige.list_page]
|
[paige.subpage]
|
||||||
disable_authors = false
|
disable_authors = false
|
||||||
disable_date = false
|
disable_date = false
|
||||||
disable_keywords = false
|
disable_keywords = false
|
||||||
|
@@ -11,7 +11,7 @@ credit = "Paige Theme"
|
|||||||
edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s"
|
edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s"
|
||||||
history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s"
|
history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s"
|
||||||
license = "MIT License"
|
license = "MIT License"
|
||||||
[paige.list_page]
|
[paige.subpage]
|
||||||
disable_authors = false
|
disable_authors = false
|
||||||
disable_date = false
|
disable_date = false
|
||||||
disable_keywords = false
|
disable_keywords = false
|
||||||
@@ -47,7 +47,7 @@ credit = "Paige Theme"
|
|||||||
edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s"
|
edit = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s"
|
||||||
history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s"
|
history = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s"
|
||||||
license = "MIT License"
|
license = "MIT License"
|
||||||
[paige.list_page]
|
[paige.subpage]
|
||||||
disable_authors = false
|
disable_authors = false
|
||||||
disable_date = false
|
disable_date = false
|
||||||
disable_keywords = false
|
disable_keywords = false
|
||||||
|
@@ -34,7 +34,7 @@ style = """
|
|||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
[paige.list_page]
|
[paige.subpage]
|
||||||
disable_authors = false
|
disable_authors = false
|
||||||
disable_date = false
|
disable_date = false
|
||||||
disable_keywords = false
|
disable_keywords = false
|
||||||
@@ -93,7 +93,7 @@ style = """
|
|||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
[paige.list_page]
|
[paige.subpage]
|
||||||
disable_authors = false
|
disable_authors = false
|
||||||
disable_date = false
|
disable_date = false
|
||||||
disable_keywords = false
|
disable_keywords = false
|
||||||
|
@@ -37,14 +37,6 @@ term = ["html"]
|
|||||||
[pagination]
|
[pagination]
|
||||||
pagersize = 50
|
pagersize = 50
|
||||||
|
|
||||||
[params.paige.list_page]
|
|
||||||
disable_authors = true
|
|
||||||
disable_date = true
|
|
||||||
disable_keywords = true
|
|
||||||
disable_reading_time = true
|
|
||||||
disable_series = true
|
|
||||||
disable_summary = true
|
|
||||||
|
|
||||||
[params.paige.page]
|
[params.paige.page]
|
||||||
disable_authors = true
|
disable_authors = true
|
||||||
disable_date = true
|
disable_date = true
|
||||||
@@ -59,6 +51,14 @@ disable_toc = true
|
|||||||
disable_breadcrumbs = true
|
disable_breadcrumbs = true
|
||||||
disable_credit = true
|
disable_credit = true
|
||||||
|
|
||||||
|
[params.paige.subpage]
|
||||||
|
disable_authors = true
|
||||||
|
disable_date = true
|
||||||
|
disable_keywords = true
|
||||||
|
disable_reading_time = true
|
||||||
|
disable_series = true
|
||||||
|
disable_summary = true
|
||||||
|
|
||||||
[[params.paige.feed.atom.authors]]
|
[[params.paige.feed.atom.authors]]
|
||||||
email = "example@example.com"
|
email = "example@example.com"
|
||||||
name = "John Doe"
|
name = "John Doe"
|
||||||
|
@@ -1,21 +1,21 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ $authors := partial "paige/func-authors.html" $page | and ($page.Parent.Param "paige.list_page.disable_authors" | not) }}
|
{{ $authors := partial "paige/func-authors.html" $page | and ($page.Parent.Param "paige.subpage.disable_authors" | not) }}
|
||||||
{{ $categories := $page.GetTerms "categories" }}
|
{{ $categories := $page.GetTerms "categories" }}
|
||||||
{{ $date := $page.PublishDate | and ($page.Parent.Param "paige.list_page.disable_date" | not) }}
|
{{ $date := $page.PublishDate | and ($page.Parent.Param "paige.subpage.disable_date" | not) }}
|
||||||
{{ $dateformat := $page.Parent.Param "paige.date_format" | default ":date_long" }}
|
{{ $dateformat := $page.Parent.Param "paige.date_format" | default ":date_long" }}
|
||||||
{{ $description := $page.Description | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.list_page.disable_description" | not) }}
|
{{ $description := $page.Description | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.subpage.disable_description" | not) }}
|
||||||
{{ $draft := $page.Draft }}
|
{{ $draft := $page.Draft }}
|
||||||
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}
|
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}
|
||||||
{{ $flags := slice }}
|
{{ $flags := slice }}
|
||||||
{{ $future := and $page.PublishDate (gt $page.PublishDate now) }}
|
{{ $future := and $page.PublishDate (gt $page.PublishDate now) }}
|
||||||
{{ $modified := and $page.PublishDate $page.Lastmod (lt $page.PublishDate $page.Lastmod) }}
|
{{ $modified := and $page.PublishDate $page.Lastmod (lt $page.PublishDate $page.Lastmod) }}
|
||||||
{{ $readingtime := $page.ReadingTime | and ($page.Parent.Param "paige.list_page.disable_reading_time" | not) }}
|
{{ $readingtime := $page.ReadingTime | and ($page.Parent.Param "paige.subpage.disable_reading_time" | not) }}
|
||||||
{{ $series := $page.GetTerms "series" | and ($page.Parent.Param "paige.list_page.disable_series" | not) }}
|
{{ $series := $page.GetTerms "series" | and ($page.Parent.Param "paige.subpage.disable_series" | not) }}
|
||||||
{{ $summary := $page.Summary | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.list_page.disable_summary" | not) }}
|
{{ $summary := $page.Summary | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.subpage.disable_summary" | not) }}
|
||||||
{{ $tags := $page.GetTerms "tags" }}
|
{{ $tags := $page.GetTerms "tags" }}
|
||||||
{{ $textkeywords := eq ($page.Parent.Param "paige.keyword_style" | default "text") "text" }}
|
{{ $textkeywords := eq ($page.Parent.Param "paige.keyword_style" | default "text") "text" }}
|
||||||
{{ $title := $page.Title | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.list_page.disable_title" | not) }}
|
{{ $title := $page.Title | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.subpage.disable_title" | not) }}
|
||||||
{{ $titlelink := $page.RelPermalink }}
|
{{ $titlelink := $page.RelPermalink }}
|
||||||
|
|
||||||
{{ if $draft }}
|
{{ if $draft }}
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $class := delimit (slice "paige-page" "w-100" | append $flags | uniq | sort) " " }}
|
{{ $class := delimit (slice "paige-page" "w-100" | append $flags | uniq | sort) " " }}
|
||||||
{{ $keywords := sort (append $categories $tags) "Title" | and ($page.Parent.Param "paige.list_page.disable_keywords" | not) }}
|
{{ $keywords := sort (append $categories $tags) "Title" | and ($page.Parent.Param "paige.subpage.disable_keywords" | not) }}
|
||||||
|
|
||||||
<div class="{{ $class }}">
|
<div class="{{ $class }}">
|
||||||
{{ with $title }}
|
{{ with $title }}
|
||||||
|
@@ -40,8 +40,8 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $collections := slice }}
|
{{ $collections := slice }}
|
||||||
{{ $pages := $page.RegularPages | and ($page.Param "paige.list_page.disable_pages" | not) }}
|
{{ $pages := $page.RegularPages | and ($page.Param "paige.subpage.disable_pages" | not) }}
|
||||||
{{ $sections := $page.Sections | and ($page.Param "paige.list_page.disable_sections" | not) }}
|
{{ $sections := $page.Sections | and ($page.Param "paige.subpage.disable_sections" | not) }}
|
||||||
|
|
||||||
{{ if $page.IsHome }}
|
{{ if $page.IsHome }}
|
||||||
{{ range $name, $taxonomy := site.Taxonomies }}
|
{{ range $name, $taxonomy := site.Taxonomies }}
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $collections = $collections | and ($page.Param "paige.list_page.disable_collections" | not) }}
|
{{ $collections = $collections | and ($page.Param "paige.subpage.disable_collections" | not) }}
|
||||||
|
|
||||||
{{ if and (not $pages) (in (slice "taxonomy" "term") $page.Kind) }}
|
{{ if and (not $pages) (in (slice "taxonomy" "term") $page.Kind) }}
|
||||||
{{ $pages = $page.Pages }}
|
{{ $pages = $page.Pages }}
|
||||||
|
Reference in New Issue
Block a user