Skip to content

Commit

Permalink
♻️ refactor: use get_url for social icons
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Aug 17, 2023

Verified

This commit was signed with the committer’s verified signature.
welpo Óscar
1 parent adb702f commit d0babd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/partials/footer.html
Original file line number Diff line number Diff line change
@@ -6,14 +6,14 @@
{%- if config.generate_feed and config.extra.feed_icon -%}
<li>
<a rel="noopener noreferrer" target="_blank" class="nav-links no-hover-padding social" href={{ get_url(path=config.feed_filename, lang=lang, trailing_slash=false) | safe }}>
<img alt="feed" title="feed" src="{{config.base_url}}/social_icons/rss.svg">
<img alt="feed" title="feed" src="{{ get_url(path='/social_icons/rss.svg') }}">
</a>
</li>
{%- endif -%}
{% for social in config.extra.socials %}
<li>
<a rel="noopener noreferrer me" target="_blank" class="nav-links no-hover-padding social" href={{ social.url | safe }}>
<img alt={{ social.name }} title={{ social.name }} src="{{config.base_url}}/social_icons/{{ social.icon }}.svg">
<img alt={{ social.name }} title={{ social.name }} src="{{ get_url(path='social_icons/' ~ social.icon ~ '.svg') }}">
</a>
</li>
{% endfor %}

0 comments on commit d0babd5

Please sign in to comment.