forked from deepStateMirrors/tabi
✨ feat: add hide_from_main_feed
support (#490)
This commit is contained in:
parent
45fe170467
commit
09e724a82b
4 changed files with 21 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue