🐛 fix(atom): don't make content and summary mutually exclusive

Summary tag should be able to exist even when there's content tag.
This commit is contained in:
Dave Patrick Caberto 2023-09-17 21:47:03 +08:00
parent 14f7188b16
commit be277dcd5b

View file

@ -63,7 +63,8 @@
<id>{{ page.permalink | safe }}</id>
{% if config.extra.full_content_in_feed %}
<content type="html">{{ page.content }}</content>
{% elif page.summary -%}
{% endif -%}
{% if page.summary -%}
<summary type="html">{{ page.summary | striptags | safe | trim_end_matches(pat=".") }}…</summary>
{% elif page.description -%}
<summary type="html">{{ page.description | striptags | safe }}</summary>