From b1148b47ef4b16c83c24a29d6a9fe8dbb5f0d855 Mon Sep 17 00:00:00 2001 From: Heitor Pascoal de Bittencourt Date: Sun, 23 Apr 2023 17:17:03 -0300 Subject: [PATCH] macros:post: sort tags alphabetically Sort tags alphabetically before displaying them. --- templates/macros/post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/macros/post.html b/templates/macros/post.html index f760d48..799ab2b 100644 --- a/templates/macros/post.html +++ b/templates/macros/post.html @@ -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) %} #{{ tag }} {%- if not loop.last %}{{ sep | safe }}{% endif -%} {% endfor -%}