Add paige-published flag
This commit is contained in:
@@ -783,6 +783,8 @@ These optional CSS classes can be defined how you want:
|
|||||||
<dd>Applied to the title of future pages in the list and term default layouts.</dd>
|
<dd>Applied to the title of future pages in the list and term default layouts.</dd>
|
||||||
<dt><code>.paige-modified</code></dt>
|
<dt><code>.paige-modified</code></dt>
|
||||||
<dd>Applied to the title of modified pages in the list and term default layouts.</dd>
|
<dd>Applied to the title of modified pages in the list and term default layouts.</dd>
|
||||||
|
<dt><code>.paige-published</code></dt>
|
||||||
|
<dd>Applied to the title of published pages in the list and term default layouts.</dd>
|
||||||
<dt><code>.paige-unpublished</code></dt>
|
<dt><code>.paige-unpublished</code></dt>
|
||||||
<dd>Applied to the title of unpublished (draft, expired, future) pages in the list and term default layouts.</dd>
|
<dd>Applied to the title of unpublished (draft, expired, future) pages in the list and term default layouts.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
@@ -67,6 +67,10 @@
|
|||||||
{{ $flags = $flags | append "paige-modified" }}
|
{{ $flags = $flags | append "paige-modified" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if not (or $draft $expired $future) }}
|
||||||
|
{{ $flags = $flags | append "paige-published" }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ $flags = delimit ($flags | sort | uniq) " " }}
|
{{ $flags = delimit ($flags | sort | uniq) " " }}
|
||||||
{{ $sectionclass = delimit (split $sectionclass " " | append $flags | sort | uniq) " " }}
|
{{ $sectionclass = delimit (split $sectionclass " " | append $flags | sort | uniq) " " }}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user