layouts: update author metadata
- As `.Site.Author` is deprecated, I need to update the way this metadata is fetched from the site configuration file. Co-Authored-by: iGor milhit <igor@milhit.ch>main
parent
91837de4f7
commit
75086bc831
|
@ -17,9 +17,9 @@
|
|||
<link>{{ .Permalink }}</link>
|
||||
<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 }}
|
||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||
<language>{{.}}</language>{{end}}{{ with .Site.Params.author.email }}
|
||||
<managingEditor>{{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
||||
<webMaster>{{.}}{{ with $.Site.Params.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 }}
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
|
@ -30,7 +30,7 @@
|
|||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
{{ with .Site.Params.author.email }}<author>{{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<description>{{ .Content | html }}</description>
|
||||
</item>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/">
|
||||
<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/">
|
||||
<meta name="DC.creator" content="{{ .Site.Author.name }}">
|
||||
<meta name="DC.creator" content="{{ .Site.Params.author.name }}">
|
||||
<meta name="DC.language" content="{{ .Language.Lang }}">
|
||||
{{- if .IsNode }}
|
||||
<meta name="DC.title" content="{{ .Site.Title }}">
|
||||
|
|
Loading…
Reference in New Issue