🐛 Fix for templating changes in Hugo v0.146.0 or later

Fixes #1049
This commit is contained in:
James Panther
2025-06-22 11:10:09 +10:00
parent 343ba2a4ae
commit 4e4b470915
4 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
{{ define "main" }}
{{ $partial := print "partials/home/" .Site.Params.homepage.layout ".html" }}
{{ $partial := print "home/" .Site.Params.homepage.layout ".html" }}
{{ if templates.Exists $partial }}
{{ partial $partial . }}
{{ else }}
{{ partial "partials/home/page.html" . }}
{{ partial "home/page.html" . }}
{{ end }}
{{ end }}