Allow specifying custom links in the footer
parent
a392498f69
commit
3381c5031b
|
@ -117,6 +117,8 @@ Visit the [Settings wiki](https://github.com/nairobilug/pelican-alchemy/wiki/Set
|
||||||
- **DESCRIPTION**: Index HTML head `<meta>` description.
|
- **DESCRIPTION**: Index HTML head `<meta>` description.
|
||||||
- **LINKS**: A list of tuples (Title, URL) for menu links.
|
- **LINKS**: A list of tuples (Title, URL) for menu links.
|
||||||
- **ICONS**: A list of tuples (Icon, URL) for icon 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.
|
- **BOOTSTRAP_CSS**: URL of Bootstrap CSS file. Use this to enable Boostwatch themes.
|
||||||
- **PYGMENTS_STYLE**: Built-in Pygments style for syntax highlighting.
|
- **PYGMENTS_STYLE**: Built-in Pygments style for syntax highlighting.
|
||||||
- **HIDE_AUTHORS**: Hide the author(s) of an article - useful for single author sites.
|
- **HIDE_AUTHORS**: Hide the author(s) of an article - useful for single author sites.
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<ul class="col-sm-6 list-inline">
|
<ul class="col-sm-6 list-inline">
|
||||||
|
{% if not FOOTER_LINKS %}
|
||||||
{% if not HIDE_AUTHORS %}
|
{% if not HIDE_AUTHORS %}
|
||||||
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ AUTHORS_URL or AUTHORS_SAVE_AS or 'authors.html' }}">Authors</a></li>
|
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ AUTHORS_URL or AUTHORS_SAVE_AS or 'authors.html' }}">Authors</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -8,6 +9,11 @@
|
||||||
{% if tags|length %}
|
{% if tags|length %}
|
||||||
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ TAGS_URL or TAGS_SAVE_AS or 'tags.html' }}">Tags</a></li>
|
<li class="list-inline-item"><a href="{{ SITEURL }}/{{ TAGS_URL or TAGS_SAVE_AS or 'tags.html' }}">Tags</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
{% for title, link in FOOTER_LINKS %}
|
||||||
|
<li class="list-inline-item"><a href="{{ url(link) }}">{{ title }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
<p class="col-sm-6 text-sm-right text-muted">
|
<p class="col-sm-6 text-sm-right text-muted">
|
||||||
Generated by <a href="https://github.com/getpelican/pelican" target="_blank">Pelican</a>
|
Generated by <a href="https://github.com/getpelican/pelican" target="_blank">Pelican</a>
|
||||||
|
|
Loading…
Reference in New Issue