fix(function): error with newer Hugo versions
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
{{- $content := .Content -}}
|
{{- $content := .Content -}}
|
||||||
|
|
||||||
|
{{- if ne "" $content -}}
|
||||||
|
|
||||||
{{- if .Ruby -}}
|
{{- if .Ruby -}}
|
||||||
{{- $content = partial "function/ruby.html" $content -}}
|
{{- $content = partial "function/ruby.html" $content -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -16,4 +18,6 @@
|
|||||||
|
|
||||||
{{- $content = partial "function/escape.html" $content -}}
|
{{- $content = partial "function/escape.html" $content -}}
|
||||||
|
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- return $content -}}
|
{{- return $content -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user