diff options
author | breadcat | 2021-02-26 00:14:31 +0000 |
---|---|---|
committer | breadcat | 2021-02-26 00:14:31 +0000 |
commit | 687215a3fb385883df4ea4ef74def709219709e1 (patch) | |
tree | 561221f2c83118c743563fa04b0ed89e5b399eed /themes/Brine/layouts/_default | |
parent | a28da6f9c67f03bde36d0336d98ade5df4f8c56e (diff) | |
download | blog.minskio.co.uk-687215a3fb385883df4ea4ef74def709219709e1.tar.gz blog.minskio.co.uk-687215a3fb385883df4ea4ef74def709219709e1.tar.bz2 blog.minskio.co.uk-687215a3fb385883df4ea4ef74def709219709e1.zip |
Comma separate those tags
Diffstat (limited to 'themes/Brine/layouts/_default')
-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 eb13967..63bd58b 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>{{- with .Params.tags -}} - <div>Tags: {{ range . -}}{{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}<a href="{{ .Permalink }}">{{ .Title }}</a> {{- end -}}{{- 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> {{ .Content }}{{ end }} |