From ff4b7b1193fa7770be486f4659a051be71149f2f Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Sat, 29 Oct 2022 16:31:46 +0200 Subject: [PATCH] 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 acd74954b5dd0a10f683744d11635bb1b1b76076 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. --- modules/wowchemy/layouts/partials/site_head.html | 2 +- modules/wowchemy/layouts/partials/site_js.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/wowchemy/layouts/partials/site_head.html b/modules/wowchemy/layouts/partials/site_head.html index f3cedcd0..1c4521b0 100644 --- a/modules/wowchemy/layouts/partials/site_head.html +++ b/modules/wowchemy/layouts/partials/site_head.html @@ -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" .) }} diff --git a/modules/wowchemy/layouts/partials/site_js.html b/modules/wowchemy/layouts/partials/site_js.html index 8f7cff59..a2bd8e4b 100644 --- a/modules/wowchemy/layouts/partials/site_js.html +++ b/modules/wowchemy/layouts/partials/site_js.html @@ -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" .) }}