summaryrefslogtreecommitdiff
path: root/layouts/partials/docs/post-meta.html
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-01-17 21:31:26 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-01-17 21:31:36 +0100
commit9888c52dbfa8dbd1b7144f524d8d5498d41bf3e1 (patch)
treea2157808b8c820dbb6cbb400b515d76e8234c6bd /layouts/partials/docs/post-meta.html
parentbce8940c62f04770222354921f0274a1986ab100 (diff)
#132, add urlize to taxonomy templates
Diffstat (limited to 'layouts/partials/docs/post-meta.html')
-rw-r--r--layouts/partials/docs/post-meta.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/layouts/partials/docs/post-meta.html b/layouts/partials/docs/post-meta.html
index a129944..41221c7 100644
--- a/layouts/partials/docs/post-meta.html
+++ b/layouts/partials/docs/post-meta.html
@@ -7,12 +7,13 @@
{{ range $term, $_ := .Site.Taxonomies }}
{{ with $list := index $.Params $term }}
+ <div>
{{ range $n, $single := $list }}{{ if $n }}, {{ end }}
- {{ with $.Site.GetPage (printf "/%s/%s" $term $single) }}
- <a href="{{ .RelPermalink }}">{{ $single }}</a>
+ {{ with $.Site.GetPage (printf "/%s/%s" $term $single | urlize) }}
+ <a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- end }}
{{- end }}
- <br />
+ </div>
{{ end }}
{{ end }}