diff --git a/layouts/partials/paige/func-include.html b/layouts/partials/paige/func-include.html index a3f9d3df..73949dda 100644 --- a/layouts/partials/paige/func-include.html +++ b/layouts/partials/paige/func-include.html @@ -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 }}