Add paige-published flag

master
Will Faught 2 years ago
parent beb3538b48
commit ee6abedf82

@ -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>
<dt><code>.paige-modified</code></dt>
<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>
<dd>Applied to the title of unpublished (draft, expired, future) pages in the list and term default layouts.</dd>
</dl>

@ -67,6 +67,10 @@
{{ $flags = $flags | append "paige-modified" }}
{{ end }}
{{ if not (or $draft $expired $future) }}
{{ $flags = $flags | append "paige-published" }}
{{ end }}
{{ $flags = delimit ($flags | sort | uniq) " " }}
{{ $sectionclass = delimit (split $sectionclass " " | append $flags | sort | uniq) " " }}

Loading…
Cancel
Save