From 5878e91a16a5fcae75398c0f139ad9004412b3ce Mon Sep 17 00:00:00 2001 From: "Russell J. Hewett" Date: Thu, 30 May 2019 21:29:54 -0400 Subject: [PATCH] refactor(baseof): created custom head and footer js placeholders --- layouts/partials/custom_head.html | 4 ++++ layouts/partials/custom_js.html | 4 ++++ layouts/partials/head_custom.html | 0 layouts/partials/site_head.html | 3 ++- layouts/partials/site_js.html | 2 ++ 5 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/custom_head.html create mode 100644 layouts/partials/custom_js.html delete mode 100644 layouts/partials/head_custom.html 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" . }}