Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xaprb/story.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaron Schwartz <xaprb@users.noreply.github.com>2018-10-27 20:04:29 +0300
committerBaron Schwartz <xaprb@users.noreply.github.com>2018-10-27 20:04:29 +0300
commit77fd3299bf5a4c17cdcaf00a9dda2cc031856d0b (patch)
tree997532757b6873822f0ce880ae48ede659794573
parent0cd1624709e35dd24349e3fa249c2ce628cbe7f2 (diff)
remove markdownify | html from RSS titles, it creates invalid XML entities or double escapes
-rw-r--r--layouts/_default/index.xml2
-rw-r--r--layouts/_default/mailchimp.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/index.xml b/layouts/_default/index.xml
index 20ce2ad..4d7e8b0 100644
--- a/layouts/_default/index.xml
+++ b/layouts/_default/index.xml
@@ -9,7 +9,7 @@
<updated>{{ .Date }}</updated>
{{ range where (where (where .Data.Pages "Section" "ne" "slides") ".Params.skip" "ne" "true") ".Date.Unix" "<" now.Unix }}
<item>
- <title>{{ cond (eq .Site.Params.titlecase true) (.Title | title | markdownify) (.Title | markdownify | html) }}</title>
+ <title>{{ cond (eq .Site.Params.titlecase true) (.Title | title) (.Title) }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
<author>{{ .Site.Params.Author }}</author>
diff --git a/layouts/_default/mailchimp.xml b/layouts/_default/mailchimp.xml
index ed8c61c..0522e10 100644
--- a/layouts/_default/mailchimp.xml
+++ b/layouts/_default/mailchimp.xml
@@ -9,7 +9,7 @@
<updated>{{ .Date }}</updated>
{{ range first 20 (where (where (where .Site.RegularPages "Section" "ne" "slides") ".Params.skip" "ne" "true") ".Date.Unix" "<" now.Unix) }}
<item>
- <title>{{ cond (eq .Site.Params.titlecase true) (.Title | title | markdownify | html) (.Title | markdownify | html) }}</title>
+ <title>{{ cond (eq .Site.Params.titlecase true) (.Title | title) (.Title) }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
<author>{{ .Site.Params.Author }}</author>