diff options
author | breadcat | 2021-02-26 00:20:05 +0000 |
---|---|---|
committer | breadcat | 2021-02-26 00:20:05 +0000 |
commit | 27bea6e56f9a90357ddea913f1294f3bb51c0b86 (patch) | |
tree | 121f3281403fda69e889b4205c4098dd162251f5 /themes | |
parent | c278c037e6796221a06f172da5c044df5d8dd6a2 (diff) | |
download | blog.minskio.co.uk-27bea6e56f9a90357ddea913f1294f3bb51c0b86.tar.gz blog.minskio.co.uk-27bea6e56f9a90357ddea913f1294f3bb51c0b86.tar.bz2 blog.minskio.co.uk-27bea6e56f9a90357ddea913f1294f3bb51c0b86.zip |
Quick fix
Whoops, shouldn't be listing blank tags if they aren't specified
Diffstat (limited to 'themes')
-rw-r--r-- | themes/Brine/layouts/_default/single.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/Brine/layouts/_default/single.html b/themes/Brine/layouts/_default/single.html index 63bd58b..cb42123 100644 --- a/themes/Brine/layouts/_default/single.html +++ b/themes/Brine/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ define "main" }} <h1>{{ .Title }}</h1>{{ if .PublishDate }} <div>Published: {{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }}, last updated: {{ .Lastmod.Format "Jan 2, 2006" }}{{ end }}</div>{{ end }} - <div>Reading time: {{ .ReadingTime }} min</div> - <div>Tags: {{ range $i, $e := .Params.tags -}}{{- if $i -}}, {{ end -}}<a href='{{ "/tags/" | relLangURL }}{{ . | urlize }}'>{{ $e | humanize }}</a>{{- end -}}</div> + <div>Reading time: {{ .ReadingTime }} min</div>{{ if .Params.tags }} + <div>Tags: {{ range $i, $e := .Params.tags -}}{{- if $i -}}, {{ end -}}<a href='{{ "/tags/" | relLangURL }}{{ . | urlize }}'>{{ $e | humanize }}</a>{{- end -}}</div>{{ end }} {{ .Content }}{{ end }} |