From 5922472635a618dc24ee98c990037ad34ba98b5b60077aa246fbb52ecbc58c49 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 16 Aug 2024 00:00:00 +0000 Subject: Make author element optional in Atom feeds --- layouts/term/term.atom.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'layouts/term/term.atom.xml') diff --git a/layouts/term/term.atom.xml b/layouts/term/term.atom.xml index 50d72fa..9ceeb79 100644 --- a/layouts/term/term.atom.xml +++ b/layouts/term/term.atom.xml @@ -37,11 +37,12 @@ {{ .Date.UTC.Format "2006-01-02T15:04:05Z" | safeHTML }} + {{- with $authorName }} - {{ $authorName }} + {{ . }} {{- with $authorEmail }} {{ . }}{{ end }} - + {{ end }} Hugo -- gohugo.io {{ replace .Site.Copyright "{currentYear}" (now.UTC.Format "2006") }} {{ .Site.Params.Description }}{{ range first .Site.Config.Services.RSS.Limit .Data.Pages }} -- cgit v1.2.3