feat(atom): add full_content_in_feed option

This commit is contained in:
welpo 2023-09-17 14:08:55 +02:00
parent 049babbd97
commit 429ed294d2
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
3 changed files with 11 additions and 1 deletions

View file

@ -61,7 +61,9 @@
</author>
<link rel="alternate" href="{{ page.permalink | safe }}" type="text/html"/>
<id>{{ page.permalink | safe }}</id>
{% if page.summary -%}
{% if config.extra.full_content_in_feed %}
<content type="html">{{ page.content | safe }}</content>
{% elif 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>