🐛 fix: allow feed icon to be hidden
This commit is contained in:
@@ -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 = feed_utils::get_generate_feed() -%}
|
{%- set generate_feed = feed_utils::get_generate_feed() == "true" -%}
|
||||||
{%- set feed_url = feed_utils::get_feed_url() -%}
|
{%- 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 -%}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
{#- Feed icon -#}
|
{#- Feed icon -#}
|
||||||
{%- set feed_url = feed_utils::get_feed_url() -%}
|
{%- 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 -%}
|
{%- set should_show_footer_icons = should_show_feed or config.extra.socials or config.extra.email -%}
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{% block main_content %}
|
{% block main_content %}
|
||||||
|
|
||||||
{#- Feed icon -#}
|
{#- 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_url = feed_utils::get_feed_url() -%}
|
||||||
{%- set feed_pre_conditions = generate_feed and feed_url and taxonomy.feed -%}
|
{%- 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") -%}
|
{%- set show_feed_icon = feed_pre_conditions and term.pages | filter(attribute="date") -%}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
|
|
||||||
{#- Feed icon -#}
|
{#- 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_url = feed_utils::get_feed_url() -%}
|
||||||
{%- set feed_pre_conditions = generate_feed and feed_url and taxonomy.feed -%}
|
{%- 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 -%}
|
{%- set show_feed_icon = feed_pre_conditions and term.pages | filter(attribute="date") | length > 0 -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user