🐛 fix: prioritise description > summary in feed

This commit is contained in:
tzinm 2025-05-11 11:31:25 +02:00
parent 5b6807b5ff
commit e806556f94

View file

@ -98,10 +98,10 @@
{% if config.extra.full_content_in_feed %} {% if config.extra.full_content_in_feed %}
<content type="html">{{ page.content }}</content> <content type="html">{{ page.content }}</content>
{% endif -%} {% endif -%}
{% if page.summary -%} {% if page.description -%}
<summary type="html">{{ page.summary | striptags | trim_end_matches(pat=".") | safe }}…</summary>
{% elif page.description -%}
<summary type="html">{{ page.description }}</summary> <summary type="html">{{ page.description }}</summary>
{% elif page.summary -%}
<summary type="html">{{ page.summary | striptags | trim_end_matches(pat=".") | safe }}…</summary>
{% endif -%} {% endif -%}
</entry> </entry>
{%- endfor %} {%- endfor %}