Move var up to match vars above

This commit is contained in:
Will Faught
2025-02-21 16:16:04 -08:00
parent 388eaa9a4b
commit cf061d06e4

View File

@@ -14,12 +14,12 @@
{{ end }}
{{ range slice "home" "page" "section" "taxonomy" "term" }}
{{ $matches := eq $page.Kind . }}
{{ $partial := print "paige/" (printf $name (print "-" .)) }}
{{ $file := print "partials/" $partial }}
{{ $exists := templates.Exists $file }}
{{ $matches := eq $page.Kind . }}
{{ if and $exists $matches }}
{{ partial $partial $page }}