mirror of
https://gitlab.com/veilid/veilid-dot-com.git
synced 2025-03-13 10:56:35 -04:00
16 lines
663 B
Twig
16 lines
663 B
Twig
![]() |
{#- param: vocabulary ~#}
|
||
|
{%- set vocabs = site.taxonomies|filter(v => v.id == vocabulary|default or vocabulary|default is empty) ~%}
|
||
|
{%- if vocabs|length > 0 ~%}
|
||
|
<nav class="terms">
|
||
|
<ul>
|
||
|
{%- for vocab in vocabs ~%}
|
||
|
{%- set vocabulary = vocab.id ~%}
|
||
|
{%- if page[vocabulary] is defined ~%}
|
||
|
{%- for term in page[vocabulary] ~%}
|
||
|
<li><a class="term" href="{{ url(vocabulary ~ '/' ~ term, {language: site.language}) }}">{{ term }}</a></li>
|
||
|
{%- endfor ~%}
|
||
|
{%- endif ~%}
|
||
|
{%- endfor ~%}
|
||
|
</ul>
|
||
|
</nav>
|
||
|
{%- endif ~%}
|