diff --git a/atom.xml b/atom.xml index 3adeae0..299d813 100644 --- a/atom.xml +++ b/atom.xml @@ -25,35 +25,33 @@ {% if config.feed.content and post.content %} {% endif %} - {% if post.description %} - {{ post.description }} + {{ post.description }} {% elif post.intro %} - {{ post.intro }} + {{ post.intro }} {% elif post.excerpt %} - {{ post.excerpt }} + {{ post.excerpt }} {% elif post.content %} {% set short_content = post.content.substring(0, config.feed.content_limit) %} {% if config.feed.content_limit_delim %} {% set delim_pos = short_content.lastIndexOf(config.feed.content_limit_delim) %} {% if delim_pos > -1 %} - {{ short_content.substring(0, delim_pos) }} + {{ short_content.substring(0, delim_pos) }} {% else %} - {{ short_content }} + {{ short_content }} {% endif %} {% else %} - {{ short_content }} + {{ short_content }} {% endif %} {% endif %} - {% if post.image %} - + {% endif %} {% for category in post.categories.toArray() %} - + {% endfor %} {% for tag in post.tags.toArray() %} - + {% endfor %} {% endfor %} diff --git a/rss2.xml b/rss2.xml index 180062b..fb0522c 100644 --- a/rss2.xml +++ b/rss2.xml @@ -23,29 +23,27 @@ {{ post.permalink | uriencode }} {{ post.permalink | uriencode }} {{ post.date.toDate().toUTCString() }} - {% if post.description %} - {{ post.description }} + {{ post.description }} {% elif post.intro %} - {{ post.intro }} + {{ post.intro }} {% elif post.excerpt %} - {{ post.excerpt }} + {{ post.excerpt }} {% elif post.content %} {% set short_content = post.content.substring(0, config.feed.content_limit) %} {% if config.feed.content_limit_delim %} {% set delim_pos = short_content.lastIndexOf(config.feed.content_limit_delim) %} {% if delim_pos > -1 %} - {{ short_content.substring(0, delim_pos) }} + {{ short_content.substring(0, delim_pos) }} {% else %} - {{ short_content }} + {{ short_content }} {% endif %} {% else %} - {{ short_content }} + {{ short_content }} {% endif %} {% endif %} - {% if post.image %} - + {% endif %} {% if config.feed.content and post.content %}