feat: allow custom feed icon

This commit is contained in:
welpo 2026-01-01 13:09:56 +01:00
parent a242efa2c3
commit deb267d39e
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
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>