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 +++-- layouts/term/term.gemini_atom.xml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'layouts/term') 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 }} diff --git a/layouts/term/term.gemini_atom.xml b/layouts/term/term.gemini_atom.xml index a4826bc..1323308 100644 --- a/layouts/term/term.gemini_atom.xml +++ b/layouts/term/term.gemini_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