mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-01-09 20:21:06 +01:00
Merge pull request #34 from heitorPB/order-tags-alphabetically
macros:post: sort tags alphabetically
This commit is contained in:
commit
9347dda144
|
@ -94,7 +94,7 @@
|
||||||
:: tags:
|
:: tags:
|
||||||
{%- set sep = " " -%}
|
{%- set sep = " " -%}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{%- for tag in page.taxonomies.tags %}
|
{%- for tag in page.taxonomies.tags | sort | unique(case_sensitive=false) %}
|
||||||
<a class="post-tag" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}">#{{ tag }}</a>
|
<a class="post-tag" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}">#{{ tag }}</a>
|
||||||
{%- if not loop.last %}{{ sep | safe }}{% endif -%}
|
{%- if not loop.last %}{{ sep | safe }}{% endif -%}
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
|
|
Loading…
Reference in a new issue