From 41f1f43aa4b602d0c5c9ea210871d696d1618f49 Mon Sep 17 00:00:00 2001 From: rodrigoalcarazdelaosa Date: Wed, 20 Aug 2025 01:04:27 +0200 Subject: [PATCH] feat: upgrade get_hook.html for Hugo ~v0.148 (#3235) Apply Hugo breaking change of /partials -> /_partials Fix for hooks not working after the update to the new Hugo template system. --- .../layouts/_partials/blox-core/functions/get_hook.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/blox-core/layouts/_partials/blox-core/functions/get_hook.html b/modules/blox-core/layouts/_partials/blox-core/functions/get_hook.html index 5791dfb8..980c9b3f 100644 --- a/modules/blox-core/layouts/_partials/blox-core/functions/get_hook.html +++ b/modules/blox-core/layouts/_partials/blox-core/functions/get_hook.html @@ -5,7 +5,7 @@ {{ $loaded := false }} {{ $partial_dir := printf "hooks/%s/" .hook }} {{ $context := .context }} -{{ $hook_dir_path := path.Join "layouts/partials" $partial_dir }} +{{ $hook_dir_path := path.Join "layouts/_partials" $partial_dir }} {{ if fileExists $hook_dir_path }} {{ range os.ReadDir $hook_dir_path }} {{ if not .IsDir }}