Move var up to match vars above

master
Will Faught 4 months ago
parent 388eaa9a4b
commit cf061d06e4

@ -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 }}

Loading…
Cancel
Save