Bläddra i källkod

refactor(baseof): created custom head and footer js placeholders

Russell J. Hewett 6 år sedan
förälder
incheckning
5878e91a16

+ 4 - 0
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. */}}

+ 4 - 0
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. */}}

+ 0 - 0
layouts/partials/head_custom.html


+ 2 - 1
layouts/partials/site_head.html

@@ -181,7 +181,8 @@
   {{ end }}
 
   {{ partial "cookie_consent" . }}
-  {{ partial "head_custom" . }}
+
+  {{ partial "custom_head" . }}
 
   <title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ site.Title }}</title>
 

+ 2 - 0
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" }}
     <script src="{{ $js_bundle.RelPermalink }}"></script>
+
+    {{ partial "custom_js" . }}