feat: allow custom feed icon (#604)

This commit is contained in:
Óscar 2026-01-01 13:14:13 +01:00 committed by GitHub
parent a242efa2c3
commit 3d5dc1baf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 28 additions and 7 deletions

View file

@ -6,6 +6,7 @@
{#- Feed icon -#}
{%- set feed_url = feed_utils::get_feed_url() -%}
{%- set feed_icon_name = feed_utils::get_feed_icon_name() -%}
{%- set should_show_feed = feed_utils::should_show_footer_feed_icon() == "true" -%}
{%- set should_show_footer_icons = should_show_feed or config.extra.socials or config.extra.email -%}
@ -18,7 +19,7 @@
{%- if should_show_feed -%}
<li>
<a class="nav-links no-hover-padding social" rel="{{ rel_attributes }}" {{ blank_target }} href="{{ get_url(path=feed_url, lang=lang, trailing_slash=false) | safe }}">
<img loading="lazy" alt="feed" title="feed" src="{{ get_url(path='/social_icons/rss.svg') }}">
<img loading="lazy" alt="feed" title="feed" src="{{ get_url(path='/social_icons/' ~ feed_icon_name ~ '.svg') }}">
</a>
</li>
{%- endif -%}