From 5f42caffdda9a43b7a627d59102478ba564527c4 Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 21 Nov 2022 20:33:39 -0500 Subject: themes/default/layouts/partials/function-generate-feeds: Try to seek author uri in atom Should be safe --- themes/default/layouts/partials/function-generate-feeds.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/themes/default/layouts/partials/function-generate-feeds.html b/themes/default/layouts/partials/function-generate-feeds.html index 6d838ed..0caf08f 100644 --- a/themes/default/layouts/partials/function-generate-feeds.html +++ b/themes/default/layouts/partials/function-generate-feeds.html @@ -76,6 +76,12 @@ {{- $sourceLink = index (index . 0) "-href" -}} {{- end -}} + {{- with .author -}} + {{- if reflect.IsMap . -}} + {{- $sourceHome = .uri -}} + {{- end -}} + {{- end -}} + {{- with .subtitle -}} {{- if reflect.IsMap . -}} {{- $sourceDescription = index . "#text" -}} -- cgit v1.2.3