feat: add hide_from_main_feed support

This commit is contained in:
welpo 2025-02-16 09:38:51 +01:00
parent 45fe170467
commit c72097ed69
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
4 changed files with 21 additions and 6 deletions

View file

@ -72,6 +72,12 @@
{%- if macros_settings::evaluate_setting_priority(setting="hide_from_feed", page=page, default_global_value=false) == "true" -%}
{%- continue -%}
{%- endif -%}
{#- Skip if hide_from_main_feed is true and this is the main feed -#}
{%- if macros_settings::evaluate_setting_priority(setting="hide_from_main_feed", page=page, default_global_value=false) == "true"
and not section
and not term -%}
{%- continue -%}
{%- endif -%}
<entry xml:lang="{{ page.lang }}">
<title>{{ page.title }}</title>
<published>{{ page.date | date(format="%+") }}</published>