aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-10-04 22:18:51 -0400
committertdro <tdro@noreply.example.com>2022-10-04 22:18:51 -0400
commit60972794f6854b0a3a4a6f73ebc0854be2c9bb6d (patch)
tree782faf4ad30ca9f502fb21d94eb8ac5fbab68ecd
parent2b4ebe2379a0af30374b34c174dd8211e4ef5d03 (diff)
downloadcanory-60972794f6854b0a3a4a6f73ebc0854be2c9bb6d.tar.gz
canory-60972794f6854b0a3a4a6f73ebc0854be2c9bb6d.tar.bz2
canory-60972794f6854b0a3a4a6f73ebc0854be2c9bb6d.zip
themes/default/layouts/partials/generate-feeds: Pass source description
-rw-r--r--themes/default/layouts/partials/generate-feeds.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/generate-feeds.html b/themes/default/layouts/partials/generate-feeds.html
index 1cdc998..e346174 100644
--- a/themes/default/layouts/partials/generate-feeds.html
+++ b/themes/default/layouts/partials/generate-feeds.html
@@ -20,7 +20,7 @@
{{- $enclosure := "" -}}
{{- $imageLink := "" -}}
{{- $link := "https://example.com/link/" -}}
- {{- $sourceDescription := "No source description found." -}}
+ {{- $sourceDescription := "" -}}
{{- $sourceHome := "" -}}
{{- $sourceLink := "https://example.com/rss/" -}}
{{- $sourceTitle := "No source title found" -}}
@@ -228,7 +228,7 @@
"author" $author.user
"content" $content
"date" .FeedDateTime
- "description" .FeedSourceTitle
+ "description" (or .FeedSourceDescription .FeedSourceTitle "No source description found.")
"domain" .FeedSourceDomain
"enclosure" .FeedEnclosure
"image" $imageSource.RelPermalink