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:
Seth For Privacy 2022-05-27 10:19:46 -04:00 committed by Reorx
parent c60eaeb535
commit b562454b3e
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@
<header class="entry-header">
<h2>
{{- .Title }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[Draft]</span></sup>{{- end }}
{{- if .Weight }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[Pinned]</span></sup>{{- end }}
</h2>
</header>
{{- if (ne (.Param "hideSummary") true) }}