🐛 fix(feed): prioritise description > summary

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

View File

@@ -97,11 +97,11 @@
<id>{{ page.permalink | safe }}</id> <id>{{ page.permalink | safe }}</id>
{% 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.description }}</summary>
{% elif page.summary -%}
<summary type="html">{{ page.summary | striptags | trim_end_matches(pat=".") | safe }}…</summary> <summary type="html">{{ page.summary | striptags | trim_end_matches(pat=".") | safe }}…</summary>
{% elif page.description -%}
<summary type="html">{{ page.description }}</summary>
{% endif -%} {% endif -%}
</entry> </entry>
{%- endfor %} {%- endfor %}