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

@ -15,3 +15,12 @@
{%- set feed_url = feed_utils::get_feed_url() -%}
{{- generate_feed and config.extra.feed_icon and feed_url -}}
{%- endmacro should_show_footer_feed_icon -%}
{#- Get feed icon name: string value or "rss" for true, empty for false -#}
{%- macro get_feed_icon_name() -%}
{%- if config.extra.feed_icon is string -%}
{{- config.extra.feed_icon -}}
{%- elif config.extra.feed_icon -%}
{{- "rss" -}}
{%- endif -%}
{%- endmacro get_feed_icon_name -%}