summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth For Privacy <seth@sethforprivacy.com>2022-05-27 10:19:46 -0400
committerReorx <novoreorx@gmail.com>2022-05-29 17:54:37 +0800
commitb562454b3e27096748dd730f450a5d54b7a1d582 (patch)
tree1a4b096c8a84b0cfc67fa4ffd6ac7bd12761d128
parentc60eaeb53510978427107bfa0f758e37094d0da9 (diff)
Add "[Pinned]" text after title when a post is pinned using `weight`
Also updates "draft" to "Draft" to properly capitalize the word (IMO).
-rw-r--r--layouts/_default/list.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 2f83d14..6ab2cde 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -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) }}