diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index 3f3dcc7..baea526 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -11,8 +11,9 @@ title = "Ignorance is bliss..." logo = "images/christoph_small.png" description = "Ignorance is bliss..." -[author] +[params.author] name = "Christoph Cullmann" + email = "christoph@cullmann.io" image = "images/christoph_avatar.jpg" headline = "Welcome to Christoph Cullmann's web site" bio = "Software Engineer at AbsInt and KDE contributor" diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index dc76e84..4ed38fd 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -17,11 +17,11 @@ {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io - {{ site.LanguageCode }}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ site.LanguageCode }}{{ with .Site.Params.Author.email }} + {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.Author.email }} + {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}} {{ if .Site.Params.footer.showCopyright | default true -}} - {{ with replace .Site.Params.copyright "{ year }" now.Year }}{{.}}{{ else }}© {{ now.Format "2006" }} {{ .Site.Author.name }}{{- end }} + {{ with replace .Site.Params.copyright "{ year }" now.Year }}{{.}}{{ else }}© {{ now.Format "2006" }} {{ .Site.Params.Author.name }}{{- end }} {{- end }} {{ if not .Date.IsZero }}{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" -}} @@ -32,7 +32,7 @@ {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ with .Site.Params.Author.email }}{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Summary | html }} {{ (printf "" .Content) | safeHTML }}