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.
This commit is contained in:
parent
6cc4ac4218
commit
1b73262d85
1 changed files with 3 additions and 2 deletions
|
@ -2,8 +2,9 @@
|
||||||
{{- with .Param $taxo }}
|
{{- with .Param $taxo }}
|
||||||
<div class="post__tags">
|
<div class="post__tags">
|
||||||
{{- range . }}
|
{{- range . }}
|
||||||
{{- $name := . -}}
|
{{- $url := urls.Parse (. | urlize) -}}
|
||||||
{{- with $.Site.GetPage (printf "/%s/%s" $taxo ($name | urlize)) }}
|
{{- $path := $url.Path -}}
|
||||||
|
{{- with $.Site.GetPage (printf "/%s/%s" $taxo $path) }}
|
||||||
<a class="post__tag btn" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
<a class="post__tag btn" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue