Skip to content

Commit

Permalink
fix: legacy support for custom_js/custom_head (#2866)
Browse files Browse the repository at this point in the history
Hooks replaced custom_js.html  and custom_head.html

However, custom_js/custom_head remain supported for legacy purposes.

Despite commit acd7495 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.
  • Loading branch information
rcannood authored Oct 29, 2022
1 parent 5dcefaa commit ff4b7b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/wowchemy/layouts/partials/site_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" .) }}
Expand Down
2 changes: 1 addition & 1 deletion modules/wowchemy/layouts/partials/site_js.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" .) }}

0 comments on commit ff4b7b1

Please # to comment.