Made footer links optional

This commit is contained in:
carpetscheme 2020-04-19 11:03:16 +02:00
parent dae632b293
commit 6f20aba48b
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@
{% block footer %}
<footer role="contentinfo">
<hr />
{% if config.extra.footer_links %}
<nav style="margin-bottom:1rem;" role="navigation">
{% for item in config.extra.footer_links %}
<a href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}">{{ item.name }}</a>
@ -51,6 +52,7 @@
{% endif %}
{% endfor %}
</nav>
{% endif %}
<small>
Built with <a href="https://www.getzola.org/">Zola</a>
{%- if config.extra.netlify %} & hosted on <a href="https://netlify.com">Netlify</a>{% endif -%}