mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-11 03:12:56 +00:00
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:
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 }}
|
||||
|
||||
Reference in new issue
Block a user