changed decorators for single

This commit is contained in:
Thunder33345 2023-04-30 21:44:59 +08:00
parent 32df60e801
commit 823168e161
No known key found for this signature in database
GPG Key ID: F02B0F022A819FCD

View File

@ -6,14 +6,14 @@
<div class="post-meta">
{{ if .Date }}
<time class="post-date">
{{ .Date.Format "2006-01-02" }} ::
{{ .Date.Format "2006-01-02" }}
{{ if $.Site.Params.showLastUpdated }}
[{{or $.Site.Params.updatedDatePrefix "Updated"}} :: {{ .Lastmod.Format "2006-01-02" }}]
:: [{{or $.Site.Params.updatedDatePrefix "Updated"}} :: {{ .Lastmod.Format "2006-01-02" }}]
{{ end }}
</time>
{{ end }}
{{ with .Params.Author }}
<span class="post-author">{{ . }}</span>
<span class="post-author"> :: {{ . }}</span>
{{ end }}
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
<span class="post-reading-time">:: {{ .ReadingTime }} {{ $.Site.Params.minuteReadingTime | default "min read" }} ({{ .WordCount }} {{ $.Site.Params.words | default "words" }})</span>