mirror of
https://github.com/welpo/tabi.git
synced 2025-12-14 11:48:45 +01:00
use feed_utils macros
This commit is contained in:
parent
aac296764a
commit
ac4ad88c55
1 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
{#- Check footer feed icon conditions -#}
|
{#- Check footer feed icon conditions -#}
|
||||||
{%- macro should_show_footer_feed_icon() -%}
|
{%- macro should_show_footer_feed_icon() -%}
|
||||||
{%- set generate_feed = config.generate_feeds | default(value=config.generate_feed) -%}
|
{%- set generate_feed = feed_utils::get_generate_feed() -%}
|
||||||
{%- set feed_url = config.feed_filenames[0] | default(value=(config.feed_filename)) -%}
|
{%- set feed_url = feed_utils::get_feed_url() -%}
|
||||||
{{- generate_feed and config.extra.feed_icon and feed_url -}}
|
{{- generate_feed and config.extra.feed_icon and feed_url -}}
|
||||||
{%- endmacro should_show_footer_feed_icon -%}
|
{%- endmacro should_show_footer_feed_icon -%}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue