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 19:32:11 +0300
committerBaron Schwartz <xaprb@users.noreply.github.com>2018-10-27 19:32:11 +0300
commitbf810982fe1d8a646aca8c537e978af8f0df2cf4 (patch)
treeb237fa71d1fa0b2f1a2ff85191b5b7df318ba54c
parentd256d923dd8b080977ddbbf9b830f72285f4305a (diff)
fix html entity escaping bug in mailchimp RSS
-rw-r--r--layouts/_default/mailchimp.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/mailchimp.xml b/layouts/_default/mailchimp.xml
index 8d06087..ed8c61c 100644
--- a/layouts/_default/mailchimp.xml
+++ b/layouts/_default/mailchimp.xml
@@ -9,13 +9,13 @@
<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) (.Title | markdownify) }}</title>
+ <title>{{ cond (eq .Site.Params.titlecase true) (.Title | title | markdownify | html) (.Title | markdownify | html) }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
<author>{{ .Site.Params.Author }}</author>
<guid>{{ .Permalink }}</guid>
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="{{ (absURL (default (default "img/default-header-img.tn-500x500.jpg" .Params.image) .Params.thumbnail)) }}" medium="image" type="image/jpg" width="100" height="100" />
- <description>{{ with .Params.tldr }}{{ . | markdownify | html }}{{ else }}{{ (printf "%s<br>%s" .Params.description .Summary) | html }}{{ end }}</description>
+ <description>{{ with .Params.tldr }}{{ . | markdownify | html }}{{ else }}{{ (printf "%s<br>%s" .Params.description .Summary) | markdownify | html }}{{ end }}</description>
</item>
{{ end }}
</channel>