neues theme: add blueprints.yaml

This commit is contained in:
teldra 2023-01-10 22:22:38 +01:00
parent 796ca1d1ce
commit 7ce92e9c40

View File

@ -1,27 +1,20 @@
{% if "events" in page.url %}
{% set collection = page.collection()|filter(page => page.header.event.start is defined) %}
{% set taxlist = taxonomylist.get %}
{% set tagList = [] %}
{% for item in collection %}
{% for tag in page.collection.taxonomy(taxonomy) %}
{{ tag }}
{% if tag not in tagList %}
{% set tagList = tagList|set([tag]) %}
{% endif %}
{% endfor %}
{% endfor %}
{% if taxlist %}
{% set taxlist_taxonomy = taxlist[taxonomy] %}
{% if filter %}
{% set taxlist_taxonomy = taxlist_taxonomy|slice(filterstart,filterend) %}
{% endif %}
{% set tagCounts = taxonomylist.get(tagList) %}
{% set sorted_tags = tagCounts|sort( 'count' ) %}
<ul>
{% for tag in sorted_tags|slice(0, 5) %}
<li>{{ tag.name }} ({{ tag.count }} mal verwendet)</li>
{% endfor %}
</ul>
<span class="tags">
{% for tax,value in taxlist_taxonomy %}
<a href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax|e('url') }}">{{ tax }}</a>
{% endfor %}
</span>
{% endif %}
{% else %}