From e22d23d0572cec3fe415109aa32cb89b55c33c24 Mon Sep 17 00:00:00 2001
From: mountainbug95 <tannersmithtn95@gmail.com>
Date: Wed, 03 Jun 2020 20:56:05 +0000
Subject: [PATCH] Remove caching from head-additions / document in readme.md

---
 layouts/_default/baseof.html         |    2 +-
 layouts/partials/head-additions.html |    0 
 README.md                            |    5 +++++
 3 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/README.md b/README.md
index 50e31d4..fd8beeb 100644
--- a/README.md
+++ b/README.md
@@ -141,6 +141,11 @@
 If you add a key of `show_reading_time` true to either the Config Params, a page or section's front matter, articles will show the reading time and word count.
 
 
+### Adding Scripts to the Page Head
+
+Some scripts need to be added within the page head. To add your own scripts to the page head, simply insert them into the `head-additions.html` partial located in the `layouts/partials` folder.
+
+
 ### Nearly finished
 
 In order to see your site in action, run Hugo's built-in local server.
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 8fb9253..ff53aa9 100755
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -42,7 +42,7 @@
     {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production")  }}
       {{ template "_internal/google_analytics_async.html" . }}
     {{ end }}
-	{{ block "head" . }}{{ partialCached "site-head.html" . }}{{ end }}
+	{{ block "head" . }}{{ partial "head-additions.html" }}{{ end }}
   </head>
 
   <body class="ma0 {{ $.Param "body_classes"  | default "avenir bg-near-white"}}{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
diff --git a/layouts/partials/site-head.html b/layouts/partials/head-additions.html
similarity index 100%
rename from layouts/partials/site-head.html
rename to layouts/partials/head-additions.html

--
Gitblit v1.10.0