aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-12-01 23:37:02 -0500
committertdro <tdro@noreply.example.com>2022-12-01 23:37:02 -0500
commit6d2b8e0fc85be29f5a8cdbaa27253b5df68cd796 (patch)
treecd53cc62695a377b24e34765d9333a317da88f66
parentf174703fafd064be06552fd73c992b0b87fd92b3 (diff)
downloadcanory-6d2b8e0fc85be29f5a8cdbaa27253b5df68cd796.tar.gz
canory-6d2b8e0fc85be29f5a8cdbaa27253b5df68cd796.tar.bz2
canory-6d2b8e0fc85be29f5a8cdbaa27253b5df68cd796.zip
themes/default/layouts/partials/function-generate-feeds: Source is always known
That was silly
-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 -}}