neues theme: add blueprints.yaml
This commit is contained in:
parent
796ca1d1ce
commit
7ce92e9c40
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user