mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
🐛 fix: prioritise description > summary in feed
This commit is contained in:
parent
5b6807b5ff
commit
e806556f94
1 changed files with 3 additions and 3 deletions
|
@ -98,10 +98,10 @@
|
||||||
{% 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.summary | striptags | trim_end_matches(pat=".") | safe }}…</summary>
|
|
||||||
{% elif page.description -%}
|
|
||||||
<summary type="html">{{ page.description }}</summary>
|
<summary type="html">{{ page.description }}</summary>
|
||||||
|
{% elif page.summary -%}
|
||||||
|
<summary type="html">{{ page.summary | striptags | trim_end_matches(pat=".") | safe }}…</summary>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
</entry>
|
</entry>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue