🐛 fix(feed): prioritise description > summary

This commit is contained in:
2025-05-11 20:02:21 +07:00
parent 7c56b73716
commit 7ada67433e

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 %}