Refactor into var like below

This commit is contained in:
Will Faught
2025-02-21 16:15:39 -08:00
parent 4436fc5752
commit 388eaa9a4b

View File

@@ -7,7 +7,9 @@
{{ $file := print "partials/" $partial }}
{{ if templates.Exists $file }}
{{ $exists := templates.Exists $file }}
{{ if $exists }}
{{ partial $partial $page }}
{{ end }}