From e8b76e3ae912fd1a991711ceb92c03029582e893 Mon Sep 17 00:00:00 2001
From: curben <2809763-curben@users.noreply.gitlab.com>
Date: Fri, 3 Jan 2020 01:30:46 +0000
Subject: [PATCH] fix(feed): remove new lines from summary
---
themes/chameleon/scripts/feed/.atom.xml | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/themes/chameleon/scripts/feed/.atom.xml b/themes/chameleon/scripts/feed/.atom.xml
index 8903d42..2df29ec 100644
--- a/themes/chameleon/scripts/feed/.atom.xml
+++ b/themes/chameleon/scripts/feed/.atom.xml
@@ -25,32 +25,30 @@
{% 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 tag in post.tags.toArray() %}
-
+
{% endfor %}
{% endfor %}