🐛 fix(footer): allow showing only email/feed icons

Fixes #312
main
welpo 9 months ago
parent 1894d550bc
commit aef49bb225
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -11,7 +11,7 @@
<footer>
<section>
<nav class="socials nav-navs">
{%- if config.extra.socials %}
{%- if config.extra.socials or config.extra.email %}
<ul>
{%- if config.generate_feed and config.extra.feed_icon -%}
<li>
@ -48,13 +48,15 @@
</li>
{%- endif -%}
{% for social in config.extra.socials %}
<li>
<a class="nav-links no-hover-padding social" rel="{{ rel_attributes }} me" {{ blank_target }} href={{ social.url | safe }}>
<img alt={{ social.name }} title={{ social.name }} src="{{ get_url(path='social_icons/' ~ social.icon ~ '.svg') }}">
</a>
</li>
{% endfor %}
{%- if config.extra.socials %}
{% for social in config.extra.socials %}
<li>
<a class="nav-links no-hover-padding social" rel="{{ rel_attributes }} me" {{ blank_target }} href={{ social.url | safe }}>
<img alt={{ social.name }} title={{ social.name }} src="{{ get_url(path='social_icons/' ~ social.icon ~ '.svg') }}">
</a>
</li>
{% endfor %}
{% endif %}
</ul>
{% endif %}
</nav>

Loading…
Cancel
Save