Allow specifying custom links in the footer

This commit is contained in:
Vitaly Potyarkin 2019-10-22 14:07:21 +03:00
commit 3381c5031b
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,6 @@
<div class="row">
<ul class="col-sm-6 list-inline">
{% if not FOOTER_LINKS %}
{% if not HIDE_AUTHORS %}
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ AUTHORS_URL or AUTHORS_SAVE_AS or 'authors.html' }}">Authors</a></li>
{% endif %}
@ -8,6 +9,11 @@
{% if tags|length %}
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ TAGS_URL or TAGS_SAVE_AS or 'tags.html' }}">Tags</a></li>
{% endif %}
{% else %}
{% for title, link in FOOTER_LINKS %}
<li class="list-inline-item"><a href="{{ url(link) }}">{{ title }}</a></li>
{% endfor %}
{% 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>