From 9b92be3b01a26525ef7b5e9d956ffd0b01ca6366 Mon Sep 17 00:00:00 2001 From: danix Date: Tue, 12 Nov 2024 11:33:56 +0100 Subject: [PATCH] fixing deprecation warnings. --- layouts/_default/rss.xml | 8 ++++---- layouts/partials/copyright.html | 2 +- layouts/partials/funcs/social-menu.html | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 3663b47..d3283ea 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -17,9 +17,9 @@ {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ with .Site.Params.Author.email }} + {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.Author.email }} + {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Page.Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" -}} @@ -30,7 +30,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 }} diff --git a/layouts/partials/copyright.html b/layouts/partials/copyright.html index 08e3ff2..7d392d5 100644 --- a/layouts/partials/copyright.html +++ b/layouts/partials/copyright.html @@ -1,7 +1,7 @@ \ No newline at end of file diff --git a/layouts/partials/funcs/social-menu.html b/layouts/partials/funcs/social-menu.html index 0da57f8..f172883 100644 --- a/layouts/partials/funcs/social-menu.html +++ b/layouts/partials/funcs/social-menu.html @@ -1,4 +1,4 @@ -{{ with .Site.Social }} +{{ with .Site.Params.Social }}