From e1d7668a3eec06f5814e95d759c6ba92874c592e Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Fri, 25 Oct 2019 20:54:23 -0400 Subject: [PATCH] Fixing feed validation errors --- layouts/index.xml | 11 ++++++-- layouts/section/blog.xml | 51 +++++++++++++++++++------------------- layouts/section/photos.xml | 51 +++++++++++++++++++------------------- 3 files changed, 61 insertions(+), 52 deletions(-) diff --git a/layouts/index.xml b/layouts/index.xml index 6cdf3b55..06a3ff34 100644 --- a/layouts/index.xml +++ b/layouts/index.xml @@ -3,9 +3,13 @@ {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} - {{ .Permalink }}" + {{ .Permalink }} Hugo + + Daniel Barber + + {{ with .Site.Author.email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}} @@ -24,8 +28,11 @@ {{ .Title }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .Permalink }} + + Daniel Barber + {{ .Content | html }} {{ end }} diff --git a/layouts/section/blog.xml b/layouts/section/blog.xml index 3cf01c16..a63a4787 100644 --- a/layouts/section/blog.xml +++ b/layouts/section/blog.xml @@ -1,33 +1,34 @@ {{ printf "" | safeHTML }} - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + + {{ .Permalink }}" + Hugo + + + Daniel Barber + + + {{ with .Site.Copyright }} + {{.}} + {{end}} + + {{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ end }} + + {{ range first 20 .Pages }} + + {{ .Title }} - {{ .Permalink }}" - Hugo - - {{ with .Site.Author.email }} + {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} + {{ .Permalink }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}} + Daniel Barber - {{end}} - - {{ with .Site.Copyright }} - {{.}} - {{end}} - - {{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ end }} - - {{ range first 20 .Pages }} - - {{ .Title }} - - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ .Permalink }} - {{ .Content | html }} - - {{ end }} + {{ .Content | html }} + + {{ end }} diff --git a/layouts/section/photos.xml b/layouts/section/photos.xml index 3cf01c16..6dfeb211 100644 --- a/layouts/section/photos.xml +++ b/layouts/section/photos.xml @@ -1,33 +1,34 @@ {{ printf "" | safeHTML }} - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + + {{ .Permalink }} + Hugo + + + Daniel Barber + + + {{ with .Site.Copyright }} + {{.}} + {{end}} + + {{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ end }} + + {{ range first 20 .Pages }} + + {{ .Title }} - {{ .Permalink }}" - Hugo - - {{ with .Site.Author.email }} + {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} + {{ .Permalink }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}} + Daniel Barber - {{end}} - - {{ with .Site.Copyright }} - {{.}} - {{end}} - - {{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ end }} - - {{ range first 20 .Pages }} - - {{ .Title }} - - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ .Permalink }} - {{ .Content | html }} - - {{ end }} + {{ .Content | html }} + + {{ end }}