mirror of
https://github.com/welpo/tabi.git
synced 2026-01-09 14:57:47 +01:00
✨ feat: allow custom feed icon (#604)
This commit is contained in:
parent
a242efa2c3
commit
3d5dc1baf1
8 changed files with 28 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue