From 998d29c84b96fced19d91e9b5c2c195964df4e53 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 14 Feb 2025 00:45:38 -0800 Subject: [PATCH] Use author name with title fallback for feed pages --- layouts/_default/list.atom.xml | 2 +- layouts/_default/list.rss.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index 3288220c..d4042af3 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -140,7 +140,7 @@ {{ . }} {{ end }} - {{ with .Params.paige.author.name }} + {{ with .Params.paige.author.name | default .Title }} {{ . }} {{ end }} diff --git a/layouts/_default/list.rss.xml b/layouts/_default/list.rss.xml index ba77b6fe..89f55078 100644 --- a/layouts/_default/list.rss.xml +++ b/layouts/_default/list.rss.xml @@ -105,7 +105,7 @@ {{ $primary := index . 0 }} {{ if and $primary.Params.paige.author.email $primary.Params.paige.author.name }} - {{ $author = printf "%s (%s)" $primary.Params.paige.author.email $primary.Params.paige.author.name }} + {{ $author = printf "%s (%s)" $primary.Params.paige.author.email ($primary.Params.paige.author.name | default $primary.Title) }} {{ else if $primary.Params.email }} {{ $author = $primary.Params.email }} {{ end }}