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