From f207573324e2a946661f947e55cde2cd068e09bc3dad74fdffb9aa0f53496eea Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sat, 30 Apr 2022 00:00:00 +0000 Subject: Remove self-closing tags from Atom feeds --- layouts/index.atom.xml | 6 +++--- layouts/index.gemini_atom.xml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'layouts') 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 @@ {{ .Site.Title }} - - {{ if not .Date.IsZero }} + + {{ if not .Date.IsZero }} {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}{{ end }} {{ .Permalink }} @@ -12,7 +12,7 @@ Hugo -- gohugo.io{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }} {{ .Title }}> - + {{ .Permalink }} {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{- 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 @@ {{ replace .Permalink "https://" "gemini://" }} {{ .Site.Title }} {{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }} - - {{ if not .Date.IsZero }}{{ end }} + + {{ if not .Date.IsZero }}{{ end }} {{ .Site.Author.name }} {{ .Site.Author.email }} @@ -16,6 +16,6 @@ {{ replace .Permalink "https://" "gemini://" | safeURL }} {{ .Title }} {{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }} - + {{ end }} -- cgit v1.2.3