aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/generate-feeds.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-21 22:04:59 -0400
committertdro <tdro@noreply.example.com>2022-06-21 22:04:59 -0400
commit66e433d953fa66eec47ec2d246bc82f5f96a6a72 (patch)
tree20c2102a2f87f807215c982de4d7924f026f985f /themes/default/layouts/partials/generate-feeds.html
parentd6d5bcd7ad26e61b1d909d8905eab090f34a4411 (diff)
downloadcanory-66e433d953fa66eec47ec2d246bc82f5f96a6a72.tar.gz
canory-66e433d953fa66eec47ec2d246bc82f5f96a6a72.tar.bz2
canory-66e433d953fa66eec47ec2d246bc82f5f96a6a72.zip
themes/default/layouts/partials/generate-feeds: Fallback to short description
If no content found.
Diffstat (limited to 'themes/default/layouts/partials/generate-feeds.html')
-rw-r--r--themes/default/layouts/partials/generate-feeds.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/generate-feeds.html b/themes/default/layouts/partials/generate-feeds.html
index 2d996bf..03fce76 100644
--- a/themes/default/layouts/partials/generate-feeds.html
+++ b/themes/default/layouts/partials/generate-feeds.html
@@ -197,8 +197,11 @@
{{- end -}}
{{- $content := .FeedContentShort -}}
- {{- if gt (len .FeedTitle) (len .FeedContentShort) -}}
+ {{- if or (eq $content "No content found.") (gt (len .FeedTitle) (len $content)) -}}
{{- $content = .FeedTitle -}}
+ {{ if .FeedDescriptionShort -}}
+ {{- $content = .FeedDescriptionShort -}}
+ {{- end -}}
{{- end -}}
{{- $link := .FeedLink -}}