From: danix Date: Tue, 12 Nov 2024 10:33:56 +0000 (+0100) Subject: fixing deprecation warnings. X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=HEAD;p=theme-danix.xyz.git fixing deprecation warnings. --- 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 }}