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