aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMantas Vilčinskas <hi@mnts.lt>2022-02-12 11:13:37 +0200
committerGitHub <noreply@github.com>2022-02-12 11:13:37 +0200
commit238257cd798decdb6c7ed51ce5eca20adc0001c8 (patch)
tree6607f64cd428791f6192a645ee4ee74aa6b1a18e
parent615d0d28e8821497d6078781e5943d54eabdeaab (diff)
parent4d786047a5d9c3b1830ac2328adf179b9fc83253 (diff)
rss xml bugfix #228 from kaystrobach/patch-1
Patch 1
-rw-r--r--layouts/_default/list.xml2
-rw-r--r--layouts/index.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.xml b/layouts/_default/list.xml
index 283d5d0..5b7e2ce 100644
--- a/layouts/_default/list.xml
+++ b/layouts/_default/list.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<link rel="alternate" type="text/html" href="{{ .Site.BaseURL }}"/>
diff --git a/layouts/index.xml b/layouts/index.xml
index 7219b4b..89f76b0 100644
--- a/layouts/index.xml
+++ b/layouts/index.xml
@@ -1,5 +1,5 @@
{{ if not .Site.Params.disableIncidentHistory }}
-<?xml version="1.0" encoding="utf-8"?>
+{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<!--