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>
|
<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 }}
|
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
<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 }}
|
{{ if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||||
{{ with .OutputFormats.Get "RSS" }}
|
{{ with .OutputFormats.Get "RSS" }}
|
||||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
{{ $currContent := .Content }}
|
{{ $currContent := .Content }}
|
||||||
{{ $backlinks := slice }}
|
{{ $backlinks := slice }}
|
||||||
{{ $forwardlinks := 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 }}
|
{{ $found := findRE $currRellink .Content 1 }}
|
||||||
{{ if $found }}
|
{{ if $found }}
|
||||||
{{ $backlinks = $backlinks | append . }}
|
{{ $backlinks = $backlinks | append . }}
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="sidebar-menu">
|
<ul class="sidebar-menu">
|
||||||
{{ range first 5 $related.ByDate.Reverse }}
|
{{ range first 5 $related }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a><br/>
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a><br/>
|
||||||
<span class="sidebar-date">
|
<span class="sidebar-date">
|
||||||
|
|
Loading…
Reference in New Issue