mirror of
https://github.com/welpo/tabi.git
synced 2026-05-14 10:07:34 +02:00
🐛 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:
parent
14f7188b16
commit
be277dcd5b
1 changed files with 2 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue