🐛 fix: allow feed icon to be hidden

This commit is contained in:
2025-06-06 18:12:55 +07:00
parent a9a6589f7f
commit 02c3adb06e
4 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
{#- Feed icon -#}
{%- set generate_feed = feed_utils::get_generate_feed() -%}
{%- set generate_feed = feed_utils::get_generate_feed() == "true" -%}
{%- set feed_url = feed_utils::get_feed_url() -%}
{%- set feed_pre_conditions = generate_feed and feed_url and taxonomy.feed -%}
{%- set show_feed_icon = feed_pre_conditions and term.pages | filter(attribute="date") | length > 0 -%}