mirror of
https://github.com/Vimux/Binario.git
synced 2024-12-24 21:43:33 +00:00
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 }}
|
||||
<div class="post__tags">
|
||||
{{- 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) }}
|
||||
<a class="post__tag btn" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue