diff --git a/README.md b/README.md index 1a0e2b89..e8b45dd1 100644 --- a/README.md +++ b/README.md @@ -852,6 +852,8 @@ These optional CSS names can be defined how you want:
Applied to the title of expired pages in the list and term layouts.
.paige-future
Applied to the title of future pages in the list and term layouts.
+
.paige-home
+
Appears with .paige-article for a page with kind "home".
.paige-metadata
The page metadata section.
.paige-modified
@@ -860,10 +862,18 @@ These optional CSS names can be defined how you want:
A page in the pages in the list and term layouts.
.paige-published
Applied to the title of published pages in the list and term layouts.
+
.paige-section
+
Appears with .paige-article for a page with kind "section".
+
.paige-single
+
Appears with .paige-article for a page with kind "page".
.paige-summary
The page summary.
.paige-reading-time
The page reading time.
+
.paige-taxonomy
+
Appears with .paige-article for a page with kind "taxonomy".
+
.paige-term
+
Appears with .paige-article for a page with kind "term".
.paige-terms-inner
The page terms.
.paige-terms-outer
diff --git a/layouts/_default/paige/home.html b/layouts/_default/paige/home.html index 7c83c6f9..6d5f37be 100644 --- a/layouts/_default/paige/home.html +++ b/layouts/_default/paige/home.html @@ -3,7 +3,7 @@ {{ $stretch := $page.Params.paige.home.image.stretch }} -
+
{{ partial "paige/metadata.html" $page }} diff --git a/layouts/partials/paige/article.html b/layouts/partials/paige/article.html index ec5d792e..4ad255b4 100644 --- a/layouts/partials/paige/article.html +++ b/layouts/partials/paige/article.html @@ -36,6 +36,20 @@ {{ $class = $class | append "paige-published" }} {{ end }} +{{ with $page.Kind }} + {{ if eq . "home" }} + {{ $class = $class | append "paige-home" }} + {{ else if eq . "section" }} + {{ $class = $class | append "paige-section" }} + {{ else if eq . "page" }} + {{ $class = $class | append "paige-single" }} + {{ else if eq . "taxonomy" }} + {{ $class = $class | append "paige-taxonomy" }} + {{ else if eq . "term" }} + {{ $class = $class | append "paige-term" }} + {{ end }} +{{ end }} + {{ $class = delimit ($class | uniq) " " }}