Add class to taxonomies.
This commit is contained in:
parent
70c106d68f
commit
1b8f62d55d
|
@ -6,6 +6,7 @@
|
||||||
{{- range $taxo := (slice "Categories" "Series" "Tags") }}
|
{{- range $taxo := (slice "Categories" "Series" "Tags") }}
|
||||||
{{- $elems := $.Param $taxo }}
|
{{- $elems := $.Param $taxo }}
|
||||||
{{- if $elems }}
|
{{- if $elems }}
|
||||||
|
<span class="{{ (lower $taxo) }}">
|
||||||
{{ $taxo }}: [
|
{{ $taxo }}: [
|
||||||
{{- range $name := $elems }}
|
{{- range $name := $elems }}
|
||||||
{{- with $.Site.GetPage (lower (printf "/%s/%s" $taxo (urlize $name))) }}
|
{{- with $.Site.GetPage (lower (printf "/%s/%s" $taxo (urlize $name))) }}
|
||||||
|
@ -13,6 +14,7 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
]
|
]
|
||||||
|
</span>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in New Issue
Block a user