Add kind prefix to kind classes
This commit is contained in:
12
README.md
12
README.md
@@ -1087,18 +1087,18 @@ Page and sub-page classes:
|
|||||||
<dd>The title.</dd>
|
<dd>The title.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
Kind classes:
|
Page kind classes:
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt><code>.paige-home</code></dt>
|
<dt><code>.paige-kind-home</code></dt>
|
||||||
<dd>The container element of pages with kind "home".</dd>
|
<dd>The container element of pages with kind "home".</dd>
|
||||||
<dt><code>.paige-list</code></dt>
|
<dt><code>.paige-kind-section</code></dt>
|
||||||
<dd>The container element of pages with kind "section".</dd>
|
<dd>The container element of pages with kind "section".</dd>
|
||||||
<dt><code>.paige-single</code></dt>
|
<dt><code>.paige-kind-page</code></dt>
|
||||||
<dd>The container element of pages with kind "page".</dd>
|
<dd>The container element of pages with kind "page".</dd>
|
||||||
<dt><code>.paige-taxonomy</code></dt>
|
<dt><code>.paige-kind-taxonomy</code></dt>
|
||||||
<dd>The container element of pages with kind "taxonomy".</dd>
|
<dd>The container element of pages with kind "taxonomy".</dd>
|
||||||
<dt><code>.paige-term</code></dt>
|
<dt><code>.paige-kind-term</code></dt>
|
||||||
<dd>The container element of pages with kind "term".</dd>
|
<dd>The container element of pages with kind "term".</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
@@ -29,15 +29,15 @@
|
|||||||
|
|
||||||
{{ with $page.Kind }}
|
{{ with $page.Kind }}
|
||||||
{{ if eq . "home" }}
|
{{ if eq . "home" }}
|
||||||
{{ $class = $class | append "paige-home" }}
|
{{ $class = $class | append "paige-kind-home" }}
|
||||||
{{ else if eq . "section" }}
|
{{ else if eq . "section" }}
|
||||||
{{ $class = $class | append "paige-list" }}
|
{{ $class = $class | append "paige-kind-section" }}
|
||||||
{{ else if eq . "page" }}
|
{{ else if eq . "page" }}
|
||||||
{{ $class = $class | append "paige-single" }}
|
{{ $class = $class | append "paige-kind-page" }}
|
||||||
{{ else if eq . "taxonomy" }}
|
{{ else if eq . "taxonomy" }}
|
||||||
{{ $class = $class | append "paige-taxonomy" }}
|
{{ $class = $class | append "paige-kind-taxonomy" }}
|
||||||
{{ else if eq . "term" }}
|
{{ else if eq . "term" }}
|
||||||
{{ $class = $class | append "paige-term" }}
|
{{ $class = $class | append "paige-kind-term" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user