fix rss validator: author should contain an e-mail address
This commit is contained in:
parent
5bdd366196
commit
2f5a09324a
|
@ -14,7 +14,7 @@
|
|||
{{- end -}}
|
||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
{{- printf "<?xml-stylesheet href=\"/pretty-feed-v3.xsl\" type=\"text/xsl\"?>" | safeHTML }}
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc='http://purl.org/dc/elements/1.1/'>
|
||||
<channel>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
|
@ -22,9 +22,7 @@
|
|||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{ if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{ end }}
|
||||
|
@ -35,7 +33,7 @@
|
|||
<link>{{ .Permalink }}</link>
|
||||
<comments>{{ .Site.Author.mastodonlink }}</comments>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
<author>{{ with $.Site.Author.name }} {{.}}{{end}}</author>
|
||||
<dc:creator>{{ with $.Site.Author.name }} {{.}}{{end}}</dc:creator>
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
{{ if .Keywords }}
|
||||
{{ range .Keywords }}
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
{{ $currContent := .Content }}
|
||||
{{ $backlinks := slice }}
|
||||
{{ $forwardlinks := slice }}
|
||||
{{ range (where (where .Site.Pages.ByDate.Reverse ".Section" "in" (slice "articles" "games")) ".Params.ignore" "!=" "true") }}
|
||||
{{ range (where (where .Site.Pages ".Section" "in" (slice "articles" "games")) ".Params.ignore" "!=" "true") }}
|
||||
{{ $found := findRE $currRellink .Content 1 }}
|
||||
{{ if $found }}
|
||||
{{ $backlinks = $backlinks | append . }}
|
||||
|
@ -75,7 +75,7 @@
|
|||
</div>
|
||||
|
||||
<ul class="sidebar-menu">
|
||||
{{ range first 5 $related }}
|
||||
{{ range first 5 $related.ByDate.Reverse }}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a><br/>
|
||||
<span class="sidebar-date">
|
||||
|
|
Loading…
Reference in New Issue