🐛 fix(feed): prioritise description > summary
This commit is contained in:
@@ -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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user