Skip to content

Commit

Permalink
馃悰 fix(footer): allow showing only email/feed icons
Browse files Browse the repository at this point in the history
Fixes #312
  • Loading branch information
welpo committed May 15, 2024
1 parent 1894d55 commit aef49bb
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions templates/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit aef49bb

Please sign in to comment.