From 23d77288040ca113dbc797aa2eaff6ba2a32f324 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 14 Apr 2024 15:30:44 +0200 Subject: Move site author configuration to params --- layouts/_default/list.atom.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'layouts/_default/list.atom.xml') diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index 67ff79b..edc133b 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -15,6 +15,7 @@ {{- $pages = $pages | first $limit -}} {{- $siteLastMod := partial "site-last-mod.html" . -}} +{{- $siteAuthor := partial "site-author.html" . -}} {{- safeHTML "" }} @@ -28,10 +29,10 @@ {{- end -}} {{- end }} {{ $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png") }}{{ $logo = $logo.Resize "96x96" }}{{ $logo.Permalink | absURL }} - {{ $logo.Permalink | absURL }}{{ with site.Author.name }} + {{ $logo.Permalink | absURL }}{{ with $siteAuthor.name }} {{ printf `` . | safeHTML }} - {{ with site.Author.email }}{{ . | html }}{{ end }} + {{ with $siteAuthor.email }}{{ . | html }}{{ end }} {{ end }}{{ with site.Params.Copyright }}{{ $copyright := replace . "{year}" now.Year }}{{ $copyright = replace $copyright "©" "©" }} {{ $copyright | plainify }}{{ end }} Hugo{{ if ne $siteLastMod "" }} -- cgit v1.2.3