added HIDE_CATEGORIES configuration flags

This commit is contained in:
Pierre-Antoine Champin 2019-04-27 21:51:50 +02:00
commit f5777d2602
3 changed files with 7 additions and 1 deletions

View file

@ -21,10 +21,12 @@
<i class="fas fa-clock"></i>
{{ article.locale_date }}
</li>
{% if not HIDE_CATEGORIES %}
<li class="list-inline-item">
<i class="fas fa-folder-open"></i>
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</li>
{% endif %}
{% if not HIDE_AUTHORS and article.authors %}
<li class="list-inline-item">
<i class="fas fa-user"></i>

View file

@ -4,7 +4,9 @@
<li class="list-inline-item"><a href="{{ SITEURL }}/authors.html">Authors</a></li>
{% endif %}
<li class="list-inline-item"><a href="{{ SITEURL }}/archives.html">Archives</a></li>
<li class="list-inline-item"><a href="{{ SITEURL }}/categories.html">Categories</a></li>
{% if not HIDE_CATEGORIES %}
<li class="list-inline-item"><a href="{{ SITEURL }}/categories.html">Categories</a></li>
{% endif %}
{% if tags|length %}
<li class="list-inline-item"><a href="{{ SITEURL }}/tags.html">Tags</a></li>
{% endif %}

View file

@ -24,10 +24,12 @@
<i class="fas fa-clock"></i>
{{ article.locale_date }}
</li>
{% if not HIDE_CATEGORIES %}
<li>
<i class="fas fa-folder-open"></i>
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</li>
{% endif %}
{% if not HIDE_AUTHORS and article.authors %}
<li>
<i class="fas fa-user"></i>