1
0
Fork 0
forked from github/pelican

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.
This commit is contained in:
Allen Zheng 2018-07-05 15:18:28 -04:00
commit 6ec5a984ad

View file

@ -39,6 +39,7 @@
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %}
</address>
{% endif %}
{% if article.category %}
<div class="category">
Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
@ -52,7 +53,6 @@
{% endfor %}
</div>
{% endif %}
{% endif %}
</footer><!-- /.post-info -->
<div class="entry-content">
{{ article.content }}