From 1b73262d857d3f665dc61fc535eca1d173ff6f99 Mon Sep 17 00:00:00 2001 From: vimux Date: Sat, 30 Nov 2019 10:46:54 -0500 Subject: [PATCH] Fix post_tags partial Fixes #20 I tried to follow the Hugo documentation example for taxonomy templates, but it should not be trusted right now, in this particular example, at least. --- layouts/partials/post_tags.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/partials/post_tags.html b/layouts/partials/post_tags.html index 148a613..efd3ea0 100644 --- a/layouts/partials/post_tags.html +++ b/layouts/partials/post_tags.html @@ -2,8 +2,9 @@ {{- with .Param $taxo }}
{{- range . }} - {{- $name := . -}} - {{- with $.Site.GetPage (printf "/%s/%s" $taxo ($name | urlize)) }} + {{- $url := urls.Parse (. | urlize) -}} + {{- $path := $url.Path -}} + {{- with $.Site.GetPage (printf "/%s/%s" $taxo $path) }} {{- end }} {{- end }}