Refactor into var like below
This commit is contained in:
@@ -7,7 +7,9 @@
|
|||||||
|
|
||||||
{{ $file := print "partials/" $partial }}
|
{{ $file := print "partials/" $partial }}
|
||||||
|
|
||||||
{{ if templates.Exists $file }}
|
{{ $exists := templates.Exists $file }}
|
||||||
|
|
||||||
|
{{ if $exists }}
|
||||||
{{ partial $partial $page }}
|
{{ partial $partial $page }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user