From 8f70a54e8bba3e29bedea4d3cfcbca1d5b123dd1 Mon Sep 17 00:00:00 2001 From: Elio Grieco Date: Wed, 4 May 2022 19:58:33 -0700 Subject: Fix conditional, improperly closed tag bug Because the span tag was placed inside the endif, the span tag would not be properly closed if a page had no categories. --- templates/macros/macros.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/macros/macros.html b/templates/macros/macros.html index c3147aa..bfaaaae 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -1,6 +1,6 @@ {% macro title(page) %}

{{ page.title }}

-{{ page.date | date(format="%B %d, %Y") }}{% if page.taxonomies.categories %} [{% for cat in page.taxonomies.categories %}{{ cat }}{% endfor %}] {% endif %} +{{ page.date | date(format="%B %d, %Y") }}{% if page.taxonomies.categories %} [{% for cat in page.taxonomies.categories %}{{ cat }}{% endfor %}]{% endif %} {% if page.taxonomies.tags %} {% for tag in page.taxonomies.tags %} #{{ tag }} {% endfor %} {% endif %} -- cgit v1.3.1