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 -}}