Преглед на файлове

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

Russell J. Hewett преди 6 години
родител
ревизия
5878e91a16
променени са 5 файла, в които са добавени 12 реда и са изтрити 1 реда
  1. 4 0
      layouts/partials/custom_head.html
  2. 4 0
      layouts/partials/custom_js.html
  3. 0 0
      layouts/partials/head_custom.html
  4. 2 1
      layouts/partials/site_head.html
  5. 2 0
      layouts/partials/site_js.html

+ 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" . }}