35 lines
1.2 KiB
Twig
35 lines
1.2 KiB
Twig
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
|
|
{% if base_url == page.url %}
|
|
{% if taxlist %}
|
|
<span class="tags">1
|
|
{% for tax,value in taxlist[taxonomy] %}
|
|
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
|
|
<a class="label label-rounded {{ label_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
|
|
{% endfor %}
|
|
</span>
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if "news" not in page.url %}
|
|
{% set pages = page.collection()|filter(page => page.header.event.start is defined) %}
|
|
|
|
|
|
<span class="tags">2
|
|
{% for tax,value in taxlist[taxonomy] %}
|
|
{% set break = false %}
|
|
{% for page in pages if not break %}
|
|
{% if tax in page.taxonomy.tag %}
|
|
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
|
|
<a class="label label-rounded {{ label_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
|
|
{% set break = true %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</span>
|
|
|
|
|
|
{% endif %}
|