fix rss validator: author should contain an e-mail address
This commit is contained in:
parent
2f5a09324a
commit
67caf3817d
|
@ -21,7 +21,7 @@
|
|||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||
<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 }}
|
||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{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 }}
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
{{ $currContent := .Content }}
|
||||
{{ $backlinks := slice }}
|
||||
{{ $forwardlinks := slice }}
|
||||
{{ range (where (where .Site.Pages ".Section" "in" (slice "articles" "games")) ".Params.ignore" "!=" "true") }}
|
||||
{{ range (where (where .Site.Pages.ByDate.Reverse ".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.ByDate.Reverse }}
|
||||
{{ range first 5 $related }}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a><br/>
|
||||
<span class="sidebar-date">
|
||||
|
|
Loading…
Reference in New Issue