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