neues theme: add blueprints.yaml

This commit is contained in:
teldra 2023-01-10 21:51:39 +01:00
parent 24ceeef8e8
commit 2418c53d95

View File

@ -1,14 +1,14 @@
{% if "events" in page.url %}
<span class="tags">1
{% for p in page.collection() %}
{% for tax, value in p.taxonomy[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 %}
{% set tags = page.collection().group('tags') %}
{% set top5tags = tags|slice(0, 5) %}
<ul>
{% for tag in top5tags %}
<li>{{ tag.name }} ({{ tag.count }})</li>
{% endfor %}
</span>
</ul>
{% else %}