From 64102fe25e4dd43f4c5089163d368e58aede2603 Mon Sep 17 00:00:00 2001 From: curbengh <43627182+curbengh@users.noreply.github.com> Date: Sun, 5 Jan 2020 06:50:37 +0000 Subject: [PATCH] fix(template): remove extra spacing --- atom.xml | 20 +++++++++----------- rss2.xml | 16 +++++++--------- 2 files changed, 16 insertions(+), 20 deletions(-) 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 %}