mirror of
https://github.com/nairobilug/pelican-alchemy.git
synced 2024-12-30 12:15:06 +01:00
added HIDE_CATEGORIES configuration flags
This commit is contained in:
parent
01d2ab8a9f
commit
f5777d2602
3 changed files with 7 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue