{{- $taxo := "categories" -}} {{- with .Param $taxo -}}
{{- partial "svg/category.svg" (dict "class" "meta__icon") -}} {{- range $index, $category := . }} {{- $url := urls.Parse ($category | urlize) -}} {{- $path := $url.Path -}} {{- with $.Site.GetPage (printf "/%s/%s" $taxo $path) }} {{- if gt $index 0 }}, {{ end -}} {{ .Title }} {{- end }} {{- end }}
{{- end }}