aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-06 05:44:08 -0400
committertdro <tdro@noreply.example.com>2022-05-06 05:44:08 -0400
commit483e4a9cb8030571697bb1790560e2d1dd6d5c10 (patch)
treee9e1af4ff218c970836fa76bf9c2fea886e79b42 /themes
parent207151902ce5ac72c716273291a6de391a557b7e (diff)
downloadcanory-483e4a9cb8030571697bb1790560e2d1dd6d5c10.tar.gz
canory-483e4a9cb8030571697bb1790560e2d1dd6d5c10.tar.bz2
canory-483e4a9cb8030571697bb1790560e2d1dd6d5c10.zip
themes/default/layouts: Remove garbled entities
Diffstat (limited to 'themes')
-rw-r--r--themes/default/layouts/_default/index.json4
-rw-r--r--themes/default/layouts/_default/rss.xml2
2 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/layouts/_default/index.json b/themes/default/layouts/_default/index.json
index ae1e793..b5ec06c 100644
--- a/themes/default/layouts/_default/index.json
+++ b/themes/default/layouts/_default/index.json
@@ -10,8 +10,8 @@
{
"id": "{{ md5 $data.Permalink }}",
"url": "{{ $data.Permalink }}",
- "title": "{{ htmlEscape $data.Summary }}",
- "summary": "{{ $data.Summary }}",
+ "title": "{{ $data.Summary | htmlUnescape }}",
+ "summary": "{{ $data.Summary | htmlUnescape }}",
"date_modified": "{{ $data.Date | time.Format "2006-01-02T15:04:05Z" }}",
"date_published": "{{ $data.PublishDate | time.Format "2006-01-02T15:04:05Z" }}",
"_metadata": {
diff --git a/themes/default/layouts/_default/rss.xml b/themes/default/layouts/_default/rss.xml
index 4570a98..eac25c4 100644
--- a/themes/default/layouts/_default/rss.xml
+++ b/themes/default/layouts/_default/rss.xml
@@ -20,7 +20,7 @@
{{- range $pages -}}
{{ if and (ne .Params.hidden true) (not .Params.Unlisted) (not .ExpiryDate) }}
<item>
- <title>{{ htmlEscape .Summary }}</title>
+ <title>{{ .Summary | htmlUnescape }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<guid>{{ .Permalink }}</guid>