Allow specifying custom links in the footer

main
Vitaly Potyarkin 2019-10-22 14:07:21 +03:00
parent a392498f69
commit 3381c5031b
2 changed files with 8 additions and 0 deletions

View File

@ -117,6 +117,8 @@ Visit the [Settings wiki](https://github.com/nairobilug/pelican-alchemy/wiki/Set
- **DESCRIPTION**: Index HTML head `<meta>` description.
- **LINKS**: A list of tuples (Title, URL) for menu links.
- **ICONS**: A list of tuples (Icon, URL) for icon links.
- **FOOTER_LINKS**: A list of tuples (Title, URL) for footer links. Replaces
default set of links (Authors, Archives, Categories, Tags).
- **BOOTSTRAP_CSS**: URL of Bootstrap CSS file. Use this to enable Boostwatch themes.
- **PYGMENTS_STYLE**: Built-in Pygments style for syntax highlighting.
- **HIDE_AUTHORS**: Hide the author(s) of an article - useful for single author sites.

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>