commit 7926417fc8c9557a95fd19da005fcb650c172cb8
parent 52ab4d5609d64522b065902e22bf42798c414197
Author: Radek KozieĊ <radoslaw.koziel@gmail.com>
Date: Fri, 9 Jun 2023 23:33:27 +0200
Merge pull request #461 from Thunder33345/stray-decoration
Fixed stray `::` when there's no other content to show
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
@@ -13,11 +13,11 @@
<div class="post-meta">
{{ if .Date }}
<time class="post-date">
- {{ .Date.Format "2006-01-02" }} ::
+ {{ .Date.Format "2006-01-02" }}
</time>
{{ end }}
{{ with .Params.Author }}
- <span class="post-author">{{ . }}</span>
+ :: <span class="post-author">{{ . }}</span>
{{ end }}
</div>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -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>