mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 13:21:35 +01:00
fix: page taxonomies
This commit is contained in:
parent
da8e715140
commit
aa98b6e5e2
1 changed files with 19 additions and 12 deletions
|
|
@ -43,19 +43,26 @@
|
|||
<hr />
|
||||
|
||||
<!-- Post Taxonomies -->
|
||||
{% if page.taxonomies.tags %}
|
||||
<footer class="mt-12 flex flex-wrap">
|
||||
{% if page.taxonomies %}
|
||||
<footer class="mt-12 flex flex-col">
|
||||
{% set_global term_names = [] %}<!---->
|
||||
{% for term_name, terms in page.taxonomies %}<!---->
|
||||
{% set_global term_names = term_names | concat(with=term_name) %}<!---->
|
||||
{% endfor %}<!---->
|
||||
{% for term_name in term_names | sort %}<!---->
|
||||
<div class="mb-2 flex flex-wrap">
|
||||
<span class="mb-1.5 mr-1.5 rounded-lg bg-black/[3%] px-5 py-1.5 dark:bg-white/[8%]"
|
||||
>{{ term_name | title }}
|
||||
</span>
|
||||
{% for term in terms %}<!---->
|
||||
{% for term in page.taxonomies[term_name] %}<!---->
|
||||
<a
|
||||
class="mb-1.5 mr-1.5 rounded-lg bg-black/[3%] px-5 py-1.5 no-underline dark:bg-white/[8%]"
|
||||
href="{{ get_taxonomy_url(kind=term_name, name=term) | safe }}"
|
||||
>{{ term }}</a
|
||||
>
|
||||
{% endfor %} {% endfor %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</footer>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue