diff options
| author | Seth For Privacy <seth@sethforprivacy.com> | 2022-05-27 10:19:46 -0400 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-05-29 17:54:37 +0800 |
| commit | b562454b3e27096748dd730f450a5d54b7a1d582 (patch) | |
| tree | 1a4b096c8a84b0cfc67fa4ffd6ac7bd12761d128 | |
| parent | c60eaeb53510978427107bfa0f758e37094d0da9 (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.html | 3 |
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"> [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> </header> {{- if (ne (.Param "hideSummary") true) }} |
