summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicksphere.ch>2022-04-30 00:00:00 +0000
committerNicholas Johnson <nick@nicksphere.ch>2022-04-30 00:00:00 +0000
commit29cd52d7e7376464ec49a9d7ceacd0b4ef97511b51ee222f5a31441db7594f12 (patch)
tree0e80309254a34286772dea090f10e88748b68873f890e1d6f0659d3046b3c354 /layouts
parenta0515d10ebf17708495d1cd209bf5303427b4d5e6d1a7c1135e2083739c14c31 (diff)
downloadhugo-theme-journal-29cd52d7e7376464ec49a9d7ceacd0b4ef97511b51ee222f5a31441db7594f12.tar.gz
hugo-theme-journal-29cd52d7e7376464ec49a9d7ceacd0b4ef97511b51ee222f5a31441db7594f12.zip
Escape HTML content in Atom feed
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.atom.xml4
-rw-r--r--layouts/index.gemini_atom.xml2
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml
index ecda6f8..8575042 100644
--- a/layouts/index.atom.xml
+++ b/layouts/index.atom.xml
@@ -1,4 +1,4 @@
-{{ printf "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | safeHTML }}
+{{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | safeHTML }}
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ .Permalink }}</id>
<title>{{ .Site.Title }}</title>
@@ -17,6 +17,6 @@
<title type="html">{{ .Title }}></title>
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
<link href="{{ .Permalink }}">
- <content type="html">{{ .Content }}</content>
+ <content type="html">{{ .Content | html }}</content>
</entry>{{ end }}
</feed>
diff --git a/layouts/index.gemini_atom.xml b/layouts/index.gemini_atom.xml
index 0510e05..7d9cba9 100644
--- a/layouts/index.gemini_atom.xml
+++ b/layouts/index.gemini_atom.xml
@@ -1,4 +1,4 @@
-{{ printf "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | safeHTML }}
+{{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | safeHTML }}
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ replace .Permalink "https://" "gemini://" }}</id>
<title>{{ .Site.Title }}</title>