aboutsummaryrefslogtreecommitdiff
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
commite716b63ef1d06bb989b07804787494f5b3f0d36affca49db29933fcfb1ddc48a (patch)
tree3eadb2c50734817f45007bb0c48bb4708d5736851fb6345a5fc0f07d9eebd7a2
parent616757e8f0fbca264c7d55ab925bba3b6fea4c1ec8618eb4d1ef1ff5e33837ff (diff)
downloadhugo-theme-journal-e716b63ef1d06bb989b07804787494f5b3f0d36affca49db29933fcfb1ddc48a.tar.gz
hugo-theme-journal-e716b63ef1d06bb989b07804787494f5b3f0d36affca49db29933fcfb1ddc48a.zip
Add XML version to website atom feed
-rw-r--r--layouts/index.atom.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml
index 7cb8ae6..6f239aa 100644
--- a/layouts/index.atom.xml
+++ b/layouts/index.atom.xml
@@ -10,6 +10,7 @@
{{- if ge $limit 1 }}
{{- $pages = $pages | first $limit }}
{{- end -}}
+<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link href="{{ .Permalink }}atom.xml" rel="self"/>