Clean up footer partial

This commit is contained in:
TheThomaas 2023-11-23 22:08:47 +01:00
parent 36d4bcda8e
commit d454a5c7a0

View file

@ -2,39 +2,19 @@
<footer> <footer>
<nav id="footernav" aria-label="Footer"> <nav id="footernav" aria-label="Footer">
<ul>
{% year %} <a href="/" {% if activePage === '/' %} aria-current="page" {% endif %}>{{ meta.siteName }}</a> {% for item in navigation.bottom %}
<li><a
{% for item in navigation.bottom %} href="{{ item.url }}"
{{
<a helpers.getLinkActiveState(item.url,
href="{{ item.url }}" page.url)
{{ |
helpers.getLinkActiveState(item.url, safe
page.url) }}
| >{{ item.text }}</a
safe ></li>
}} {% endfor %}
>{{ item.text }}</a </ul>
>
{% endfor %}
</nav>
<nav id="social" aria-label="Social links">
{% for item in social %}
{% if item.platform == "rss" %}
<a href="{{ meta.url }}/{{ locale }}{{ item.url }}" rel="alternate" type="application/rss+xml">
{% else %}
<a href="{{ item.url }}" rel="me">
{% endif %}
<span class="sr-only">{{ item.platform }}</span>
<div aria-hidden="true">{% include 'icons/social-' + item.icon %}</div>
</a
>
{% endfor %}
</nav> </nav>
</footer> </footer>