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:
Robrecht Cannoodt authored and GitHub committed 2022-10-29 15:31:46 +01:00
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" .) }}