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

@ -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 -%}