Add [future]/[expired] to future/expired posts
Implements adityatelange/hugo-PaperMod#1119
This commit is contained in:
@ -6,6 +6,8 @@
|
||||
<h1 class="post-title">
|
||||
{{ .Title }}
|
||||
{{- if .Draft }}<sup><span class="entry-isdraft"> [draft]</span></sup>{{- end }}
|
||||
{{- if and (not .Date.IsZero) (gt (time .Date) now) }}<sup><span class="entry-isfuture"> [future]</span></sup>{{- end }}
|
||||
{{- if and (not .ExpiryDate.IsZero) (gt now (time .ExpiryDate)) }}<sup><span class="entry-isexpired"> [expired]</span></sup>{{- end }}
|
||||
</h1>
|
||||
{{- if .Description }}
|
||||
<div class="post-description">
|
||||
|
Reference in New Issue
Block a user