Allow hiding of additional items

HIDE_AUTHORS is already supported, extend to support hiding
archives, categories and the complete article header banner line.

Signed-off-by: Neil Williams <neil.williams@linaro.org>
This commit is contained in:
Neil Williams 2018-09-10 10:53:58 +01:00
commit 95bf450b8b
2 changed files with 6 additions and 0 deletions

View file

@ -3,11 +3,15 @@
{% if not HIDE_AUTHORS %}
<li class="list-inline-item"><a href="{{ SITEURL }}/authors.html">Authors</a></li>
{% endif %}
{% if not HIDE_ARCHIVES %}
<li class="list-inline-item"><a href="{{ SITEURL }}/archives.html">Archives</a></li>
{% endif %}
{% if not HIDE_CATEGORIES %}
<li class="list-inline-item"><a href="{{ SITEURL }}/categories.html">Categories</a></li>
{% if tags|length %}
<li class="list-inline-item"><a href="{{ SITEURL }}/tags.html">Tags</a></li>
{% endif %}
{% endif %}
</ul>
<p class="col-sm-6 text-sm-right text-muted">
Generated by <a href="https://github.com/getpelican/pelican" target="_blank">Pelican</a>