summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2024-12-01 19:45:21 -0600
committerMark Powers <mark@marks.kitchen>2024-12-01 19:45:21 -0600
commit049babdd9999c0430852b6e833dfe90ff96731af (patch)
treeab206e4574c7f5bfa57cf8ed0d324a1a59c422d6
parent2d7874b7a58861ebc452374ad22013c5d200f1f9 (diff)
Update layout for hugo v124+
-rw-r--r--layouts/_default/rss.xml8
-rw-r--r--layouts/partials/head.html2
2 files changed, 5 insertions, 5 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 202e844..c6b7f31 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -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.Params.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" -}}
@@ -31,7 +31,7 @@
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.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>{{ .Summary | html }}</description>
</item>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 4f1993a..2762e62 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -3,7 +3,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- author -->
- <meta name="author" content="{{ .Site.Author.name }}">
+ <meta name="author" content="{{ .Site.Params.Author.name }}">
<!-- description -->
<meta name="description" content="{{ .Site.Params.Description }}">