mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-22 03:19:25 +00:00
#122, Fix post taxonomy list links (include base url)
This commit is contained in:
parent
ec53e2733f
commit
b9f45270a0
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
{"Target":"book.min.2f0632dc31655f852f191d7c354e584af6f6ca239af70afdd117bbe5950815b2.css","MediaType":"text/css","Data":{"Integrity":"sha256-LwYy3DFlX4UvGR18NU5YSvb2yiOa9wr90Re75ZUIFbI="}}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
{"Target":"book.min.2f0632dc31655f852f191d7c354e584af6f6ca239af70afdd117bbe5950815b2.css","MediaType":"text/css","Data":{"Integrity":"sha256-LwYy3DFlX4UvGR18NU5YSvb2yiOa9wr90Re75ZUIFbI="}}
|
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user