diff --git a/templates/atom.xml b/templates/atom.xml index 0a9e8c4e..46eb9b7e 100644 --- a/templates/atom.xml +++ b/templates/atom.xml @@ -100,19 +100,20 @@ {% if config.extra.full_content_in_feed %} {{ page.content }} {% endif -%} + {% if page.description or page.summary or config.extra.auto_generate_post_summary %} -
{% if page.description -%}

{{ page.description | markdown(inline=true) | safe }}

{% endif %} {% if page.summary -%} -

{{ page.summary | striptags | trim_end_matches(pat=".") | safe }}...

+

{{ page.summary | striptags | trim_end_matches(pat=".") | safe }}…

{% elif config.extra.auto_generate_post_summary %}

{{ page.content | striptags | truncate(length=config.extra.auto_generated_summary_length) | safe }}

{% endif %}
+ {% endif %} {%- endfor %}