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.
This commit is contained in:
rodrigoalcarazdelaosa authored and GitHub committed 2025-08-20 00:04:27 +01:00
1 parent ab52b86a3b
commit 41f1f43aa4
1 file changed
+1 -1
@@ -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 }}