From b562454b3e27096748dd730f450a5d54b7a1d582 Mon Sep 17 00:00:00 2001 From: Seth For Privacy Date: Fri, 27 May 2022 10:19:46 -0400 Subject: [PATCH] Add "[Pinned]" text after title when a post is pinned using `weight` Also updates "draft" to "Draft" to properly capitalize the word (IMO). --- layouts/_default/list.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@

{{- .Title }} - {{- if .Draft }}  [draft]{{- end }} + {{- if .Draft }}  [Draft]{{- end }} + {{- if .Weight }}  [Pinned]{{- end }}

{{- if (ne (.Param "hideSummary") true) }}