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
|
|
@ -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 -%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue