Add "[Pinned]" text after title when a post is pinned using `weight`
Also updates "draft" to "Draft" to properly capitalize the word (IMO).
This commit is contained in:
parent
c60eaeb535
commit
b562454b3e
|
@ -61,7 +61,8 @@
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<h2>
|
<h2>
|
||||||
{{- .Title }}
|
{{- .Title }}
|
||||||
{{- if .Draft }}<sup><span class="entry-isdraft"> [draft]</span></sup>{{- end }}
|
{{- if .Draft }}<sup><span class="entry-isdraft"> [Draft]</span></sup>{{- end }}
|
||||||
|
{{- if .Weight }}<sup><span class="entry-isdraft"> [Pinned]</span></sup>{{- end }}
|
||||||
</h2>
|
</h2>
|
||||||
</header>
|
</header>
|
||||||
{{- if (ne (.Param "hideSummary") true) }}
|
{{- if (ne (.Param "hideSummary") true) }}
|
||||||
|
|
Loading…
Reference in New Issue