taxonomies - added taxonmies support
This commit is contained in:
parent
8f239a0ddc
commit
f420e5763c
6 changed files with 182 additions and 1 deletions
11
layouts/partials/navigators/taxonomies.html
Normal file
11
layouts/partials/navigators/taxonomies.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{ $context := .context }}
|
||||
{{ $taxo := .taxo }}
|
||||
{{ $title := .title }}
|
||||
{{ if isset $context.Site.Taxonomies ( lower $taxo ) }}
|
||||
{{ $taxonomy := index $context.Site.Taxonomies ( lower $taxo ) }}
|
||||
{{ if (gt (len $taxonomy) 0)}}
|
||||
{{ range $taxonomy }}
|
||||
<li><a class="taxonomy-term" href="{{ .Page.Permalink }}" data-taxonomy-term="{{ urlize .Page.Title }}"><span class="taxonomy-label">{{ .Page.Title }}</span></a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue