mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-11-28 14:38:45 +03:00
Merge pull request #461 from Thunder33345/stray-decoration
Fixed stray `::` when there's no other content to show
This commit is contained in:
commit
7926417fc8
2 changed files with 5 additions and 5 deletions
|
@ -13,11 +13,11 @@
|
||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{ if .Date }}
|
{{ if .Date }}
|
||||||
<time class="post-date">
|
<time class="post-date">
|
||||||
{{ .Date.Format "2006-01-02" }} ::
|
{{ .Date.Format "2006-01-02" }}
|
||||||
</time>
|
</time>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Params.Author }}
|
{{ with .Params.Author }}
|
||||||
<span class="post-author">{{ . }}</span>
|
:: <span class="post-author">{{ . }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -6,14 +6,14 @@
|
||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{ if .Date }}
|
{{ if .Date }}
|
||||||
<time class="post-date">
|
<time class="post-date">
|
||||||
{{ .Date.Format "2006-01-02" }} ::
|
{{ .Date.Format "2006-01-02" }}
|
||||||
{{ if $.Site.Params.showLastUpdated }}
|
{{ 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 }}
|
{{ end }}
|
||||||
</time>
|
</time>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Params.Author }}
|
{{ with .Params.Author }}
|
||||||
<span class="post-author">{{ . }}</span>
|
<span class="post-author"> :: {{ . }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
|
{{ 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>
|
<span class="post-reading-time">:: {{ .ReadingTime }} {{ $.Site.Params.minuteReadingTime | default "min read" }} ({{ .WordCount }} {{ $.Site.Params.words | default "words" }})</span>
|
||||||
|
|
Loading…
Reference in a new issue