From 9ce7d33c486177ee7def438eb2deaa36dd3af1ae Mon Sep 17 00:00:00 2001 From: Will Faught Date: Thu, 16 Mar 2023 01:30:17 -0700 Subject: [PATCH] Rename paige-page to paige-subpage --- README.md | 4 ++-- layouts/partials/paige/{page.html => subpage.html} | 2 +- layouts/partials/paige/subpages.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename layouts/partials/paige/{page.html => subpage.html} (97%) diff --git a/README.md b/README.md index a44ae16d..5677cf5d 100644 --- a/README.md +++ b/README.md @@ -804,14 +804,14 @@ Page and sub-page classes:
The description.
.paige-metadata
The metadata.
-
.paige-page
-
A sub-page.
.paige-summary
The summary.
.paige-reading-time
The reading time.
.paige-series
The series.
+
.paige-subpage
+
A sub-page.
.paige-term
A term.
.paige-terms
diff --git a/layouts/partials/paige/page.html b/layouts/partials/paige/subpage.html similarity index 97% rename from layouts/partials/paige/page.html rename to layouts/partials/paige/subpage.html index e4704d7f..fdd0db4e 100644 --- a/layouts/partials/paige/page.html +++ b/layouts/partials/paige/subpage.html @@ -44,7 +44,7 @@ {{ end }} {{ $flags = delimit ($flags | uniq) " " }} -{{ $class := delimit (slice "mb-3" "paige-page" "w-100" | append $flags | uniq | sort) " " }} +{{ $class := delimit (slice "mb-3" "paige-subpage" "w-100" | append $flags | uniq | sort) " " }}
{{ with $title }} diff --git a/layouts/partials/paige/subpages.html b/layouts/partials/paige/subpages.html index 04088572..35c51def 100644 --- a/layouts/partials/paige/subpages.html +++ b/layouts/partials/paige/subpages.html @@ -21,7 +21,7 @@ {{ $pinned := where $page.Pages "Params.paige.pin" true }} {{ range $pinned.ByPublishDate.Reverse }} - {{ partial "paige/page.html" . }} + {{ partial "paige/subpage.html" . }} {{ end }} {{ $unpinned := complement $pinned $page.Pages }} @@ -32,7 +32,7 @@

{{ .Key }}

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