Merge pull request #34 from heitorPB/order-tags-alphabetically

macros:post: sort tags alphabetically
This commit is contained in:
Paweł Romanowski 2023-04-24 09:49:21 +02:00 committed by GitHub
commit 9347dda144
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@
:: tags: 
{%- set sep = " " -%}
{% 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>
{%- if not loop.last %}{{ sep | safe }}{% endif -%}
{% endfor -%}