🐛 fix(feed): prioritise description > summary (#525)

This commit is contained in:
tzinm 2025-05-11 14:33:27 +02:00 committed by GitHub
parent 5f28b0e87e
commit 68c35b02f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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