diff options
author | tdro <tdro@noreply.example.com> | 2022-06-21 22:04:59 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-21 22:04:59 -0400 |
commit | 66e433d953fa66eec47ec2d246bc82f5f96a6a72 (patch) | |
tree | 20c2102a2f87f807215c982de4d7924f026f985f /themes/default/layouts/partials/generate-feeds.html | |
parent | d6d5bcd7ad26e61b1d909d8905eab090f34a4411 (diff) | |
download | canory-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.html | 5 |
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 -}} |