diff options
author | tdro <tdro@noreply.example.com> | 2022-12-22 02:19:54 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-12-22 02:19:54 -0500 |
commit | f02259a87f5be78ac3611a2341bed83306e94223 (patch) | |
tree | d2f80015f7e548a7cd34813f633b2429e64b10df /themes/default/layouts/partials/function-content.html | |
parent | b7acf1be64b6845a0b826a1af4c0db62e70e9aba (diff) | |
download | canory-f02259a87f5be78ac3611a2341bed83306e94223.tar.gz canory-f02259a87f5be78ac3611a2341bed83306e94223.tar.bz2 canory-f02259a87f5be78ac3611a2341bed83306e94223.zip |
themes/default/layouts/shortcodes/video: Add RSS version
Unify other helpers
Diffstat (limited to 'themes/default/layouts/partials/function-content.html')
-rw-r--r-- | themes/default/layouts/partials/function-content.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/function-content.html b/themes/default/layouts/partials/function-content.html index 9ad5a1a..59776aa 100644 --- a/themes/default/layouts/partials/function-content.html +++ b/themes/default/layouts/partials/function-content.html @@ -1,7 +1,6 @@ {{- $context := . -}} {{- $content := $context.Content -}} {{- $expired := and .ExpiryDate (ge now.Unix .ExpiryDate.Unix) -}} -{{- $empty := eq (len $content) 0 -}} {{- $content = $content | @@ -20,7 +19,7 @@ {{- $content = replace $content $brokenBlockquote $fixedBlockquote -}} {{- end -}} -{{- if $empty -}} +{{- if not $content -}} {{- $content = "This message contains no content." -}} {{- end -}} |