From 3249f108da9f22768f1a3762530def9ce3f73908 Mon Sep 17 00:00:00 2001 From: Evgeny Kuznetsov Date: Mon, 14 Sep 2020 20:14:41 +0300 Subject: [PATCH] fix(function): error with newer Hugo versions --- layouts/partials/function/content.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/function/content.html b/layouts/partials/function/content.html index f1d7ce81..a3bef1e4 100644 --- a/layouts/partials/function/content.html +++ b/layouts/partials/function/content.html @@ -1,5 +1,7 @@ {{- $content := .Content -}} +{{- if ne "" $content -}} + {{- if .Ruby -}} {{- $content = partial "function/ruby.html" $content -}} {{- end -}} @@ -16,4 +18,6 @@ {{- $content = partial "function/escape.html" $content -}} +{{- end -}} + {{- return $content -}}