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

@ -9,8 +9,9 @@
{{ title -}}
{% if show_feed_icon %}
{%- set feed_url = feed_utils::get_feed_url() -%}
{%- set feed_icon_name = feed_utils::get_feed_icon_name() -%}
<a class="no-hover-padding social" rel="{{ rel_attributes }}" {{ blank_target }} href="{{ get_url(path=term.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>
{% endif %}
</h1>