aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/function-generate-feeds.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/function-generate-feeds.html')
-rw-r--r--themes/default/layouts/partials/function-generate-feeds.html10
1 files changed, 1 insertions, 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 -}}