From 388eaa9a4ba2a2dac86b6a611f709826cf4cfd40 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 21 Feb 2025 16:15:39 -0800 Subject: [PATCH] Refactor into var like below --- layouts/partials/paige/func-include.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/paige/func-include.html b/layouts/partials/paige/func-include.html index f9f0d2ce..a3f9d3df 100644 --- a/layouts/partials/paige/func-include.html +++ b/layouts/partials/paige/func-include.html @@ -7,7 +7,9 @@ {{ $file := print "partials/" $partial }} -{{ if templates.Exists $file }} +{{ $exists := templates.Exists $file }} + +{{ if $exists }} {{ partial $partial $page }} {{ end }}