From a5a18ab356dbe47ddc11e287734c4f0660a020b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Duje=20Mihanovi=C4=87?= <duje.mihanovic@skole.hr> Date: Sat, 24 Aug 2024 16:58:03 +0200 Subject: [PATCH] Reintroduce RSS author tag, fixing Hugo deprecation warning --- layouts/rss.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/layouts/rss.xml b/layouts/rss.xml index 65a962d..0c388a7 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -11,12 +11,13 @@ <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/" }} -- 2.39.5