mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Use comma delimiting on series-box in single.html
This commit is contained in:
parent
37c5a970c4
commit
b2036d3bfe
@ -8,14 +8,25 @@
|
||||
|
||||
{{ partial "post-metadata.html" . }}
|
||||
|
||||
|
||||
{{ with (.GetTerms "series") }}
|
||||
|
||||
{{ $series := slice }}
|
||||
{{ range . }}
|
||||
{{ $series = $series | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
||||
{{ end }}
|
||||
|
||||
<div class="series-box">
|
||||
{{ partial "icon.html" "info" }}
|
||||
{{ if gt (len $series) 1 }}
|
||||
This post is part of multiple series:
|
||||
{{ else }}
|
||||
This post is part of a series:
|
||||
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ delimit $series ", " }}
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user