diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-01-13 18:06:09 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-01-13 18:06:09 +0100 |
commit | b9f45270a07a49851979f3a5a7acf449eb1ad3f3 (patch) | |
tree | 21c5a8404ef721d94c5977b55999cc971cfcca33 /layouts/partials/docs | |
parent | ec53e2733fca61ac986638157345f733a3a5102e (diff) |
#122, Fix post taxonomy list links (include base url)
Diffstat (limited to 'layouts/partials/docs')
-rw-r--r-- | layouts/partials/docs/post-meta.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/docs/post-meta.html b/layouts/partials/docs/post-meta.html index 37b6080..b1cca0a 100644 --- a/layouts/partials/docs/post-meta.html +++ b/layouts/partials/docs/post-meta.html @@ -7,8 +7,10 @@ {{ range $term, $_ := .Site.Taxonomies }} {{ with $list := index $.Params $term }} - {{ range $n, $single := $list }}{{ if $n }}, {{ end -}} - <a href="/{{$term}}/{{$single}}/">{{ $single }}</a> + {{ range $n, $single := $list }}{{ if $n }}, {{ end }} + {{ with $.Site.GetPage (printf "/%s/%s" $term $single) }} + <a href="{{ . }}">{{ $single }}</a> + {{- end }} {{- end }} <br /> {{ end }} |