fixing deprecation warnings. master
authordanix <danix@danix.xyz>
Tue, 12 Nov 2024 10:33:56 +0000 (11:33 +0100)
committerdanix <danix@danix.xyz>
Tue, 12 Nov 2024 10:33:56 +0000 (11:33 +0100)
layouts/_default/rss.xml
layouts/partials/copyright.html
layouts/partials/funcs/social-menu.html

index 3663b47..d3283ea 100644 (file)
@@ -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>{{ .Page.Lastmod.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>{{ .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>
index 08e3ff2..7d392d5 100644 (file)
@@ -1,7 +1,7 @@
 <div class="copyright align-center">
 <p xmlns:cc="http://creativecommons.org/ns#"
 xmlns:dct="http://purl.org/dc/terms/">
-       <a property="dct:title" rel="cc:attributionURL" href="{{.Site.BaseURL}}">content</a> by <strong><a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="{{.Site.BaseURL}}/is">{{$.Site.Author.name}}</a></strong> licensed under the <a href="http://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer">{{- partial "funcs/svg.html" (dict "context" . "username" "cc") -}}{{- partial "funcs/svg.html" (dict "context" . "username" "cc-by") -}}{{- partial "funcs/svg.html" (dict "context" . "username" "cc-sa") -}}<span class="screen-reader-text">CC BY-SA 4.0</span></a> unless stated otherwhise
+       <a property="dct:title" rel="cc:attributionURL" href="{{.Site.BaseURL}}">content</a> by <strong><a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="{{.Site.BaseURL}}/is">{{$.Site.Params.Author.name}}</a></strong> licensed under the <a href="http://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer">{{- partial "funcs/svg.html" (dict "context" . "username" "cc") -}}{{- partial "funcs/svg.html" (dict "context" . "username" "cc-by") -}}{{- partial "funcs/svg.html" (dict "context" . "username" "cc-sa") -}}<span class="screen-reader-text">CC BY-SA 4.0</span></a> unless stated otherwhise
        &hybull;
        hugo theme adapted from <a href="https://html5up.net/forty">Forty by html5up.net</a></p>
 </div>
\ No newline at end of file
index 0da57f8..f172883 100644 (file)
@@ -1,4 +1,4 @@
-{{ with .Site.Social }}
+{{ with .Site.Params.Social }}
 <div class="col-4 col-12-medium align-right">
        <ul class="footer-socials">
                <li class="social-link social-spotify">