From 6d2b8e0fc85be29f5a8cdbaa27253b5df68cd796 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 1 Dec 2022 23:37:02 -0500 Subject: themes/default/layouts/partials/function-generate-feeds: Source is always known That was silly --- themes/default/layouts/partials/function-generate-feeds.html | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/themes/default/layouts/partials/function-generate-feeds.html b/themes/default/layouts/partials/function-generate-feeds.html index 2bcef5b..7330c24 100644 --- a/themes/default/layouts/partials/function-generate-feeds.html +++ b/themes/default/layouts/partials/function-generate-feeds.html @@ -26,7 +26,7 @@ {{- $link := "https://example.com/link/" -}} {{- $sourceDescription := "" -}} {{- $sourceHome := "" -}} - {{- $sourceLink := "https://example.com/rss/" -}} + {{- $sourceLink := $url -}} {{- $sourceTitle := "No source title found" -}} {{- $title := "No Title Found" -}} @@ -37,14 +37,10 @@ {{- if reflect.IsSlice .link -}} {{- if reflect.IsMap (index .link 0) -}} - {{- $sourceLink = index (first 1 .link) 0 "-href" -}} {{- $sourceHome = index (last 1 .link) 0 -}} {{- else -}} - {{- $sourceLink = index .link 0 -}} {{- $sourceHome = index .link 0 -}} {{- end -}} - {{- else -}} - {{- $sourceLink = .link -}} {{- end -}} {{- with .image -}} @@ -76,10 +72,6 @@ {{- else -}} - {{- with .link -}} - {{- $sourceLink = index (index . 0) "-href" -}} - {{- end -}} - {{- with .author -}} {{- if reflect.IsMap . -}} {{- $sourceHome = .uri -}} -- cgit v1.2.3