mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 16:15:12 +00:00
fix: legacy support for custom_js/custom_head (#2866)
Hooks replaced custom_js.html and custom_head.html
However, custom_js/custom_head remain supported for legacy purposes.
Despite commit acd74954b5 mentioning that the custom.html is still supported for now, I don't think it's being picked up at the moment. This PR resolves this issue.
This commit is contained in:
1 parent
5dcefaa0c5
commit
ff4b7b1193
2 files changed
+2
-2
No files matched your search
@@ -208,7 +208,7 @@
|
||||
|
||||
{{/* EXTENSIBILITY HOOK: HEAD-END */}}
|
||||
{{/* Deprecated custom_head hook */}}
|
||||
{{ if templates.Exists "partials/custom_head" }}
|
||||
{{ if templates.Exists "partials/custom_head.html" }}
|
||||
{{ partial "custom_head" . }}
|
||||
{{ end }}
|
||||
{{ partial "functions/get_hook" (dict "hook" "head-end" "context" .) }}
|
||||
|
||||
@@ -233,7 +233,7 @@
|
||||
|
||||
{{/* EXTENSIBILITY HOOK: BODY-END */}}
|
||||
{{/* Deprecated custom_js hook */}}
|
||||
{{ if templates.Exists "partials/custom_js" }}
|
||||
{{ if templates.Exists "partials/custom_js.html" }}
|
||||
{{ partial "custom_js" . }}
|
||||
{{ end }}
|
||||
{{ partial "functions/get_hook" (dict "hook" "body-end" "context" .) }}
|
||||
Reference in new issue
Block a user