diff --git a/assets/css/common/post-entry.css b/assets/css/common/post-entry.css index 885aa2a4..4ca58648 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 3a6f316e..3c17b6f0 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 b7497255..8103f603 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 }}