feat: add hide_from_main_feed support (#490)

This commit is contained in:
Óscar 2025-02-16 09:49:51 +01:00 committed by GitHub
parent 45fe170467
commit 09e724a82b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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>