From cf061d06e453204a4a97816c83aaf0b3b7707ed1 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 21 Feb 2025 16:16:04 -0800 Subject: [PATCH] Move var up to match vars above --- layouts/partials/paige/func-include.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}