From 02c3adb06e842e24ddbf6debf7728efb713a6e4b Mon Sep 17 00:00:00 2001 From: zloylinux Date: Fri, 6 Jun 2025 18:12:55 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20allow=20feed=20icon=20to?= =?UTF-8?q?=20be=20hidden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/tabi/templates/macros/feed_utils.html | 2 +- themes/tabi/templates/partials/footer.html | 2 +- themes/tabi/templates/tags/single.html | 2 +- themes/tabi/templates/taxonomy_single.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/tabi/templates/macros/feed_utils.html b/themes/tabi/templates/macros/feed_utils.html index 7a649b8..b6a84e6 100644 --- a/themes/tabi/templates/macros/feed_utils.html +++ b/themes/tabi/templates/macros/feed_utils.html @@ -11,7 +11,7 @@ {#- Check footer feed icon conditions -#} {%- macro should_show_footer_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() -%} {{- generate_feed and config.extra.feed_icon and feed_url -}} {%- endmacro should_show_footer_feed_icon -%} diff --git a/themes/tabi/templates/partials/footer.html b/themes/tabi/templates/partials/footer.html index b52dd4f..c0466a0 100644 --- a/themes/tabi/templates/partials/footer.html +++ b/themes/tabi/templates/partials/footer.html @@ -6,7 +6,7 @@ {#- Feed icon -#} {%- set feed_url = feed_utils::get_feed_url() -%} -{%- set should_show_feed = feed_utils::should_show_footer_feed_icon() -%} +{%- set should_show_feed = feed_utils::should_show_footer_feed_icon() == "true" -%} {%- set should_show_footer_icons = should_show_feed or config.extra.socials or config.extra.email -%}