Merge 2a4275686cab10fe06fccfa87065a08673d3c9a0 into 65c2720ab99368c2125fa39ed1433e0677683b75

This commit is contained in:
Gina Häußge 2023-12-16 13:16:46 +05:30 committed by GitHub
commit d530cad9a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -81,7 +81,9 @@
}
.entry-cover,
.entry-isdraft {
.entry-isdraft,
.entry-isfuture,
.entry-isexpired {
font-size: 14px;
color: var(--secondary);
}

View File

@ -70,6 +70,8 @@
<h2>
{{- .Title }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
{{- if and (not .Date.IsZero) (gt (time .Date) now) }}<sup><span class="entry-isfuture">&nbsp;&nbsp;[future]</span></sup>{{- end }}
{{- if and (not .ExpiryDate.IsZero) (gt now (time .ExpiryDate)) }}<sup><span class="entry-isexpired">&nbsp;&nbsp;[expired]</span></sup>{{- end }}
</h2>
</header>
{{- if (ne (.Param "hideSummary") true) }}

View File

@ -6,6 +6,8 @@
<h1 class="post-title">
{{ .Title }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
{{- if and (not .Date.IsZero) (gt (time .Date) now) }}<sup><span class="entry-isfuture">&nbsp;&nbsp;[future]</span></sup>{{- end }}
{{- if and (not .ExpiryDate.IsZero) (gt now (time .ExpiryDate)) }}<sup><span class="entry-isexpired">&nbsp;&nbsp;[expired]</span></sup>{{- end }}
</h1>
{{- if .Description }}
<div class="post-description">