From ea0aa26a91f58816e24e151b88f3767e9053c728 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Wed, 17 Jul 2024 18:19:28 -0700 Subject: [PATCH] Add kind prefix to kind classes --- README.md | 12 ++++++------ layouts/partials/paige/page.html | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 3f09e585..6eedd914 100644 --- a/README.md +++ b/README.md @@ -1087,18 +1087,18 @@ Page and sub-page classes:
The title.
-Kind classes: +Page kind classes:
-
.paige-home
+
.paige-kind-home
The container element of pages with kind "home".
-
.paige-list
+
.paige-kind-section
The container element of pages with kind "section".
-
.paige-single
+
.paige-kind-page
The container element of pages with kind "page".
-
.paige-taxonomy
+
.paige-kind-taxonomy
The container element of pages with kind "taxonomy".
-
.paige-term
+
.paige-kind-term
The container element of pages with kind "term".
diff --git a/layouts/partials/paige/page.html b/layouts/partials/paige/page.html index 0333510a..56a9dce9 100644 --- a/layouts/partials/paige/page.html +++ b/layouts/partials/paige/page.html @@ -29,15 +29,15 @@ {{ with $page.Kind }} {{ if eq . "home" }} - {{ $class = $class | append "paige-home" }} + {{ $class = $class | append "paige-kind-home" }} {{ else if eq . "section" }} - {{ $class = $class | append "paige-list" }} + {{ $class = $class | append "paige-kind-section" }} {{ else if eq . "page" }} - {{ $class = $class | append "paige-single" }} + {{ $class = $class | append "paige-kind-page" }} {{ else if eq . "taxonomy" }} - {{ $class = $class | append "paige-taxonomy" }} + {{ $class = $class | append "paige-kind-taxonomy" }} {{ else if eq . "term" }} - {{ $class = $class | append "paige-term" }} + {{ $class = $class | append "paige-kind-term" }} {{ end }} {{ end }}