diff --git a/README.md b/README.md index c9225476..580feb38 100644 --- a/README.md +++ b/README.md @@ -824,14 +824,14 @@ Page and sub-page classes:
The keywords.
.paige-metadata
The metadata.
+
.paige-page
+
A page.
.paige-summary
The summary.
.paige-reading-time
The reading time.
.paige-series
The series.
-
.paige-subpage
-
A sub-page.
.paige-title
The title.
.paige-toc
@@ -904,12 +904,12 @@ try the following in your `layouts/partials/paige/style-first.css`: #paige-reading-time, #paige-series, #paige-toc, -#paige-subpages .paige-authors, -#paige-subpages .paige-date, -#paige-subpages .paige-keywords, -#paige-subpages .paige-reading-time, -#paige-subpages .paige-series, -#paige-subpages .paige-summary { +.paige-authors, +.paige-date, +.paige-keywords, +.paige-reading-time, +.paige-series, +.paige-summary { display: none; } diff --git a/exampleSite/content/customization/_index.md b/exampleSite/content/customization/_index.md index 06ba1ad3..2e664ba6 100644 --- a/exampleSite/content/customization/_index.md +++ b/exampleSite/content/customization/_index.md @@ -12,13 +12,13 @@ paige: #paige-reading-time, #paige-series, #paige-toc, - #paige-subpages .paige-authors, - #paige-subpages .paige-date, - #paige-subpages .paige-date-header, - #paige-subpages .paige-keywords, - #paige-subpages .paige-reading-time, - #paige-subpages .paige-series, - #paige-subpages .paige-summary { + .paige-authors, + .paige-date, + .paige-date-header, + .paige-keywords, + .paige-reading-time, + .paige-series, + .paige-summary { display: block; } series: ["demo"] @@ -44,13 +44,13 @@ paige: #paige-reading-time, #paige-series, #paige-toc, - #paige-subpages .paige-authors, - #paige-subpages .paige-date, - #paige-subpages .paige-date-header, - #paige-subpages .paige-keywords, - #paige-subpages .paige-reading-time, - #paige-subpages .paige-series, - #paige-subpages .paige-summary { + .paige-authors, + .paige-date, + .paige-date-header, + .paige-keywords, + .paige-reading-time, + .paige-series, + .paige-summary { display: block; } ``` diff --git a/exampleSite/content/customization/show.md b/exampleSite/content/customization/show.md index 05051c48..09578d34 100644 --- a/exampleSite/content/customization/show.md +++ b/exampleSite/content/customization/show.md @@ -12,13 +12,13 @@ paige: #paige-reading-time, #paige-series, #paige-toc, - #paige-subpages .paige-authors, - #paige-subpages .paige-date, - #paige-subpages .paige-date-header, - #paige-subpages .paige-keywords, - #paige-subpages .paige-reading-time, - #paige-subpages .paige-series, - #paige-subpages .paige-summary { + .paige-authors, + .paige-date, + .paige-date-header, + .paige-keywords, + .paige-reading-time, + .paige-series, + .paige-summary { display: block; } series: ["demo"] @@ -44,13 +44,13 @@ paige: #paige-reading-time, #paige-series, #paige-toc, - #paige-subpages .paige-authors, - #paige-subpages .paige-date, - #paige-subpages .paige-date-header, - #paige-subpages .paige-keywords, - #paige-subpages .paige-reading-time, - #paige-subpages .paige-series, - #paige-subpages .paige-summary { + .paige-authors, + .paige-date, + .paige-date-header, + .paige-keywords, + .paige-reading-time, + .paige-series, + .paige-summary { display: block; } ``` diff --git a/exampleSite/content/customization/style.md b/exampleSite/content/customization/style.md index e1ff5c2f..8c0a1633 100644 --- a/exampleSite/content/customization/style.md +++ b/exampleSite/content/customization/style.md @@ -12,13 +12,13 @@ paige: #paige-reading-time, #paige-series, #paige-toc, - #paige-subpages .paige-authors, - #paige-subpages .paige-date, - #paige-subpages .paige-date-header, - #paige-subpages .paige-keywords, - #paige-subpages .paige-reading-time, - #paige-subpages .paige-series, - #paige-subpages .paige-summary { + .paige-authors, + .paige-date, + .paige-date-header, + .paige-keywords, + .paige-reading-time, + .paige-series, + .paige-summary { display: block; } #paige-authors { font-style: italic; } @@ -32,12 +32,12 @@ paige: #paige-toc { font-style: italic; } #paige-copyright { font-style: italic; } #paige-credit { font-style: italic; } - #paige-subpages .paige-authors { font-style: italic; } - #paige-subpages .paige-date { font-style: italic; } - #paige-subpages .paige-date-header { font-style: italic; } - #paige-subpages .paige-keyword { font-style: italic; } - #paige-subpages .paige-series { font-style: italic; } - #paige-subpages .paige-summary { font-style: italic; } + .paige-authors { font-style: italic; } + .paige-date { font-style: italic; } + .paige-date-header { font-style: italic; } + .paige-keyword { font-style: italic; } + .paige-series { font-style: italic; } + .paige-summary { font-style: italic; } series: ["demo"] tags: ["singles", "style"] title: "Style Data" @@ -62,13 +62,13 @@ paige: #paige-reading-time, #paige-series, #paige-toc, - #paige-subpages .paige-authors, - #paige-subpages .paige-date, - #paige-subpages .paige-date-header, - #paige-subpages .paige-keywords, - #paige-subpages .paige-reading-time, - #paige-subpages .paige-series, - #paige-subpages .paige-summary { + .paige-authors, + .paige-date, + .paige-date-header, + .paige-keywords, + .paige-reading-time, + .paige-series, + .paige-summary { display: block; } #paige-authors { font-style: italic; } @@ -82,10 +82,10 @@ paige: #paige-toc { font-style: italic; } #paige-copyright { font-style: italic; } #paige-credit { font-style: italic; } - #paige-subpages .paige-authors { font-style: italic; } - #paige-subpages .paige-date { font-style: italic; } - #paige-subpages .paige-date-header { font-style: italic; } - #paige-subpages .paige-keyword { font-style: italic; } - #paige-subpages .paige-series { font-style: italic; } - #paige-subpages .paige-summary { font-style: italic; } + .paige-authors { font-style: italic; } + .paige-date { font-style: italic; } + .paige-date-header { font-style: italic; } + .paige-keyword { font-style: italic; } + .paige-series { font-style: italic; } + .paige-summary { font-style: italic; } ``` diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0bcc5a71..40c30434 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,5 +2,5 @@ {{ $page := . }} {{ partial "paige/article.html" $page }} -{{ partial "paige/subpages.html" $page }} +{{ partial "paige/pages.html" $page }} {{ end }} diff --git a/layouts/_default/paige/section.html b/layouts/_default/paige/section.html index 0bcc5a71..40c30434 100644 --- a/layouts/_default/paige/section.html +++ b/layouts/_default/paige/section.html @@ -2,5 +2,5 @@ {{ $page := . }} {{ partial "paige/article.html" $page }} -{{ partial "paige/subpages.html" $page }} +{{ partial "paige/pages.html" $page }} {{ end }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 61ee0db4..80bdfd9f 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -5,7 +5,7 @@ {{ if or (eq $page.RelPermalink "/categories/") (eq $page.RelPermalink "/tags/") }} {{ if $page.Pages }} -
+
{{ end }} {{ else }} - {{ partial "paige/subpages.html" $page }} + {{ partial "paige/pages.html" $page }} {{ end }} {{ end }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 0bcc5a71..40c30434 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -2,5 +2,5 @@ {{ $page := . }} {{ partial "paige/article.html" $page }} -{{ partial "paige/subpages.html" $page }} +{{ partial "paige/pages.html" $page }} {{ end }} diff --git a/layouts/partials/paige/subpage.html b/layouts/partials/paige/page.html similarity index 97% rename from layouts/partials/paige/subpage.html rename to layouts/partials/paige/page.html index 404e34f9..29c191b0 100644 --- a/layouts/partials/paige/subpage.html +++ b/layouts/partials/paige/page.html @@ -44,7 +44,7 @@ {{ end }} {{ $flags = delimit ($flags | uniq) " " }} -{{ $class := delimit (slice "mb-3" "paige-subpage" "w-100" | append $flags | uniq | sort) " " }} +{{ $class := delimit (slice "mb-3" "paige-page" "w-100" | append $flags | uniq | sort) " " }}
{{ with $title }} diff --git a/layouts/partials/paige/subpages.html b/layouts/partials/paige/pages.html similarity index 92% rename from layouts/partials/paige/subpages.html rename to layouts/partials/paige/pages.html index be7d09de..fbb59425 100644 --- a/layouts/partials/paige/subpages.html +++ b/layouts/partials/paige/pages.html @@ -11,7 +11,7 @@ {{ end }} {{ range $k, $v := . }} - {{ partial "paige/subpage.html" (site.GetPage $k) }} + {{ partial "paige/page.html" (site.GetPage $k) }} {{ end }}
{{ end }} @@ -23,7 +23,7 @@ {{ end }} {{ range . }} - {{ partial "paige/subpage.html" . }} + {{ partial "paige/page.html" . }} {{ end }}
{{ end }} @@ -57,7 +57,7 @@ {{ $pinned := where . "Params.paige.pin" true }} {{ range $pinned.ByPublishDate.Reverse }} - {{ partial "paige/subpage.html" . }} + {{ partial "paige/page.html" . }} {{ end }} {{ $unpinned := complement $pinned . }} @@ -68,7 +68,7 @@

{{ .Key }}

{{ range .Pages }} - {{ partial "paige/subpage.html" . }} + {{ partial "paige/page.html" . }} {{ end }} {{ end }}