mirror of
https://github.com/danbee/danbarber.me.hugo.git
synced 2025-03-04 08:59:18 +00:00
Fixing feed validation errors
This commit is contained in:
parent
32baf7cad5
commit
e1d7668a3e
@ -3,9 +3,13 @@
|
|||||||
|
|
||||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||||
<link href="{{ .Permalink }}" />
|
<link href="{{ .Permalink }}" />
|
||||||
<id>{{ .Permalink }}"</id>
|
<id>{{ .Permalink }}</id>
|
||||||
<generator uri="https://gohugo.io">Hugo</generator>
|
<generator uri="https://gohugo.io">Hugo</generator>
|
||||||
|
|
||||||
|
<author>
|
||||||
|
<name>Daniel Barber</name>
|
||||||
|
</author>
|
||||||
|
|
||||||
{{ with .Site.Author.email }}
|
{{ with .Site.Author.email }}
|
||||||
<author>
|
<author>
|
||||||
<name>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</name>
|
<name>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</name>
|
||||||
@ -24,8 +28,11 @@
|
|||||||
<entry>
|
<entry>
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link href="{{ .Permalink }}" />
|
<link href="{{ .Permalink }}" />
|
||||||
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</updated>
|
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||||
<id>{{ .Permalink }}</id>
|
<id>{{ .Permalink }}</id>
|
||||||
|
<author>
|
||||||
|
<name>Daniel Barber</name>
|
||||||
|
</author>
|
||||||
<content type="html">{{ .Content | html }}</content>
|
<content type="html">{{ .Content | html }}</content>
|
||||||
</entry>
|
</entry>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@ -1,33 +1,34 @@
|
|||||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
|
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<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>
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||||
|
<link href="{{ .Permalink }}" />
|
||||||
|
<id>{{ .Permalink }}"</id>
|
||||||
|
<generator uri="https://gohugo.io">Hugo</generator>
|
||||||
|
|
||||||
|
<author>
|
||||||
|
<name>Daniel Barber</name>
|
||||||
|
</author>
|
||||||
|
|
||||||
|
{{ with .Site.Copyright }}
|
||||||
|
<copyright>{{.}}</copyright>
|
||||||
|
{{end}}
|
||||||
|
|
||||||
|
{{ if not .Date.IsZero }}
|
||||||
|
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</updated>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ range first 20 .Pages }}
|
||||||
|
<entry>
|
||||||
|
<title>{{ .Title }}</title>
|
||||||
<link href="{{ .Permalink }}" />
|
<link href="{{ .Permalink }}" />
|
||||||
<id>{{ .Permalink }}"</id>
|
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||||
<generator uri="https://gohugo.io">Hugo</generator>
|
<id>{{ .Permalink }}</id>
|
||||||
|
|
||||||
{{ with .Site.Author.email }}
|
|
||||||
<author>
|
<author>
|
||||||
<name>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</name>
|
<name>Daniel Barber</name>
|
||||||
</author>
|
</author>
|
||||||
{{end}}
|
<content type="html">{{ .Content | html }}</content>
|
||||||
|
</entry>
|
||||||
{{ with .Site.Copyright }}
|
{{ end }}
|
||||||
<copyright>{{.}}</copyright>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{ if not .Date.IsZero }}
|
|
||||||
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</updated>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ range first 20 .Pages }}
|
|
||||||
<entry>
|
|
||||||
<title>{{ .Title }}</title>
|
|
||||||
<link href="{{ .Permalink }}" />
|
|
||||||
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</updated>
|
|
||||||
<id>{{ .Permalink }}</id>
|
|
||||||
<content type="html">{{ .Content | html }}</content>
|
|
||||||
</entry>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
</feed>
|
</feed>
|
||||||
|
|||||||
@ -1,33 +1,34 @@
|
|||||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
|
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<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>
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||||
|
<link href="{{ .Permalink }}" />
|
||||||
|
<id>{{ .Permalink }}</id>
|
||||||
|
<generator uri="https://gohugo.io">Hugo</generator>
|
||||||
|
|
||||||
|
<author>
|
||||||
|
<name>Daniel Barber</name>
|
||||||
|
</author>
|
||||||
|
|
||||||
|
{{ with .Site.Copyright }}
|
||||||
|
<copyright>{{.}}</copyright>
|
||||||
|
{{end}}
|
||||||
|
|
||||||
|
{{ if not .Date.IsZero }}
|
||||||
|
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</updated>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ range first 20 .Pages }}
|
||||||
|
<entry>
|
||||||
|
<title>{{ .Title }}</title>
|
||||||
<link href="{{ .Permalink }}" />
|
<link href="{{ .Permalink }}" />
|
||||||
<id>{{ .Permalink }}"</id>
|
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||||
<generator uri="https://gohugo.io">Hugo</generator>
|
<id>{{ .Permalink }}</id>
|
||||||
|
|
||||||
{{ with .Site.Author.email }}
|
|
||||||
<author>
|
<author>
|
||||||
<name>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</name>
|
<name>Daniel Barber</name>
|
||||||
</author>
|
</author>
|
||||||
{{end}}
|
<content type="html">{{ .Content | html }}</content>
|
||||||
|
</entry>
|
||||||
{{ with .Site.Copyright }}
|
{{ end }}
|
||||||
<copyright>{{.}}</copyright>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{ if not .Date.IsZero }}
|
|
||||||
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</updated>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ range first 20 .Pages }}
|
|
||||||
<entry>
|
|
||||||
<title>{{ .Title }}</title>
|
|
||||||
<link href="{{ .Permalink }}" />
|
|
||||||
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</updated>
|
|
||||||
<id>{{ .Permalink }}</id>
|
|
||||||
<content type="html">{{ .Content | html }}</content>
|
|
||||||
</entry>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
</feed>
|
</feed>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user