diff --git a/layouts/partials/custom_head.html b/layouts/partials/custom_head.html new file mode 100644 index 00000000..b256694e --- /dev/null +++ b/layouts/partials/custom_head.html @@ -0,0 +1,4 @@ +{{/* No changes should be made to this file. */}} +{{/* Instead, create or modify your sites layout/partials/custom_head.html. */}} + +{{/* This partial is included in themes/academic/layout/partials/site_head.html. */}} diff --git a/layouts/partials/custom_js.html b/layouts/partials/custom_js.html new file mode 100644 index 00000000..5214b744 --- /dev/null +++ b/layouts/partials/custom_js.html @@ -0,0 +1,4 @@ +{{/* No changes should be made to this file. */}} +{{/* Instead, create or modify your sites layout/partials/custom_js.html. */}} + +{{/* This partial is included in themes/academic/layout/partials/site_js.html. */}} diff --git a/layouts/partials/head_custom.html b/layouts/partials/head_custom.html deleted file mode 100644 index e69de29b..00000000 diff --git a/layouts/partials/site_head.html b/layouts/partials/site_head.html index da523cbf..4702e378 100644 --- a/layouts/partials/site_head.html +++ b/layouts/partials/site_head.html @@ -181,7 +181,8 @@ {{ end }} {{ partial "cookie_consent" . }} - {{ partial "head_custom" . }} + + {{ partial "custom_head" . }} {{ if not .IsHome }}{{ .Title }} | {{ end }}{{ site.Title }} diff --git a/layouts/partials/site_js.html b/layouts/partials/site_js.html index 3ffbfa48..7558f435 100644 --- a/layouts/partials/site_js.html +++ b/layouts/partials/site_js.html @@ -149,3 +149,5 @@ {{ $js_bundle := $js_bundle | resources.Concat "js/academic-bundle-pre.js" | minify }} {{ $js_bundle := slice $js_bundle_head $js_bundle | resources.Concat "js/academic.min.js" | fingerprint "md5" }} + + {{ partial "custom_js" . }}