aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/function-content.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/function-content.html')
-rw-r--r--themes/default/layouts/partials/function-content.html3
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 -}}