From 8c24c2bab5d0a306728ce3de1fc774344ab58947 Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 31 Jan 2026 21:20:38 +0100 Subject: [PATCH] avoid empty divs --- templates/atom.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 %}