summaryrefslogtreecommitdiff
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
commitf207573324e2a946661f947e55cde2cd068e09bc3dad74fdffb9aa0f53496eea (patch)
treecb5a0ac38352451ee96d0385d5dadcfe546c67f8ca560e92ebff670edf42851d
parent294e192b5069e3c18ad472dfe111330c4a2042bf0ec0441aabec31e1156ad631 (diff)
downloadhugo-theme-journal-f207573324e2a946661f947e55cde2cd068e09bc3dad74fdffb9aa0f53496eea.tar.gz
hugo-theme-journal-f207573324e2a946661f947e55cde2cd068e09bc3dad74fdffb9aa0f53496eea.zip
Remove self-closing tags from Atom feeds
-rw-r--r--layouts/index.atom.xml6
-rw-r--r--layouts/index.gemini_atom.xml6
2 files changed, 6 insertions, 6 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml
index adf2431..b2ff567 100644
--- a/layouts/index.atom.xml
+++ b/layouts/index.atom.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ .Site.Title }}</title>
- <link href="{{ .Permalink }}atom.xml" rel="self"/>
- <link href="{{ .Permalink }}"/>{{ if not .Date.IsZero }}
+ <link href="{{ .Permalink }}atom.xml" rel="self">
+ <link href="{{ .Permalink }}">{{ if not .Date.IsZero }}
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{ end }}
<id>{{ .Permalink }}</id>
<author>
@@ -12,7 +12,7 @@
<generator>Hugo -- gohugo.io</generator>{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }}
<entry>
<title type="html">{{ .Title }}></title>
- <link href="{{ .Permalink }}"/>
+ <link href="{{ .Permalink }}">
<id>{{ .Permalink }}</id>
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
{{- if .Content }}
diff --git a/layouts/index.gemini_atom.xml b/layouts/index.gemini_atom.xml
index 0dee4ea..c52f632 100644
--- a/layouts/index.gemini_atom.xml
+++ b/layouts/index.gemini_atom.xml
@@ -3,8 +3,8 @@
<id>{{ replace .Permalink "https://" "gemini://" }}</id>
<title>{{ .Site.Title }}</title>
<updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
- <link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}atom.xml" rel="self" />
- <link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />{{ if not .Date.IsZero }}{{ end }}
+ <link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}atom.xml" rel="self">
+ <link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate">{{ if not .Date.IsZero }}{{ end }}
<author>
<name>{{ .Site.Author.name }}</name>
<email>{{ .Site.Author.email }}</email>
@@ -16,6 +16,6 @@
<id>{{ replace .Permalink "https://" "gemini://" | safeURL }}</id>
<title>{{ .Title }}</title>
<updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
- <link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate" />
+ <link href="{{ replace .Permalink "https://" "gemini://" | safeURL }}" rel="alternate">
</entry>{{ end }}
</feed>