diff --git a/assets/css/common/post-entry.css b/assets/css/common/post-entry.css index 885aa2a486..4ca5864867 100644 --- a/assets/css/common/post-entry.css +++ b/assets/css/common/post-entry.css @@ -81,7 +81,9 @@ } .entry-cover, -.entry-isdraft { +.entry-isdraft, +.entry-isfuture, +.entry-isexpired { font-size: 14px; color: var(--secondary); } diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 3a6f316eed..3c17b6f04b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -68,6 +68,8 @@

{{- .Title }} {{- if .Draft }}  [draft]{{- end }} + {{- if and (not .Date.IsZero) (gt (time .Date) now) }}  [future]{{- end }} + {{- if and (not .ExpiryDate.IsZero) (gt now (time .ExpiryDate)) }}  [expired]{{- end }}

{{- if (ne (.Param "hideSummary") true) }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b7497255b6..8103f603af 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,6 +6,8 @@

{{ .Title }} {{- if .Draft }}  [draft]{{- end }} + {{- if and (not .Date.IsZero) (gt (time .Date) now) }}  [future]{{- end }} + {{- if and (not .ExpiryDate.IsZero) (gt now (time .ExpiryDate)) }}  [expired]{{- end }}

{{- if .Description }}