From 6ec5a984ade7589261ccd42f8eebfca0e3d1ce9b Mon Sep 17 00:00:00 2001 From: Allen Zheng Date: Thu, 5 Jul 2018 15:18:28 -0400 Subject: [PATCH] Show article category/tags even if no authors Before this commit, the behavior of the simple theme is to hide the category and tags if there is no author defined, even if the category/tags are present. This appears to be unintentional, due to a misplaced `endif`. Fix this by moving the endif to the right place, so that the other if blocks aren't nested. --- pelican/themes/simple/templates/article.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/themes/simple/templates/article.html b/pelican/themes/simple/templates/article.html index e02596f4..9a3f3283 100644 --- a/pelican/themes/simple/templates/article.html +++ b/pelican/themes/simple/templates/article.html @@ -39,6 +39,7 @@ {{ author }} {% endfor %} + {% endif %} {% if article.category %}
Category: {{ article.category }} @@ -52,7 +53,6 @@ {% endfor %}
{% endif %} - {% endif %}
{{ article.content }}