]> git.dujemihanovic.xyz Git - hugo-skeleton.git/commitdiff
Reintroduce RSS author tag, fixing Hugo deprecation warning
authorDuje Mihanović <duje.mihanovic@skole.hr>
Sat, 24 Aug 2024 14:58:03 +0000 (16:58 +0200)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Sat, 24 Aug 2024 14:58:03 +0000 (16:58 +0200)
layouts/rss.xml

index 65a962db22f23d643ba6a84d4e7dc45ee4aa595d..0c388a7ad930e5159c91c81eec649908d13bba0a 100644 (file)
        <updated>{{ $lastmod.Format "2006-01-02T15:04:05Z" }}</updated>
        <link href="{{ .Permalink }}"/>
        <link rel="self" href="{{ (.OutputFormats.Get "RSS").Permalink }}"/>
-       <!--
+       {{ if .Site.Params }}
        <author>
-               <name>Duje Mihanović</name>
-               <email>duje.mihanovic@skole.hr</email>
+               <name>{{ .Site.Params.author.name }}</name>
+               <email>{{ .Site.Params.author.email }}</email>
                <uri>{{ .Permalink }}</uri>
-       </author>-->
+       </author>
+       {{ end }}
        <generator uri="https://gohugo.io/">Hugo</generator>
 
        {{ with $.Site.GetPage "posts/" }}