From 3f18e910c8f4805c4d27fc0ab0976aa52f63efbe Mon Sep 17 00:00:00 2001
From: AnimMouse <git@animmouse.eu.org>
Date: Tue, 02 Jun 2020 06:24:27 +0000
Subject: [PATCH] Add custom head partial
---
layouts/_default/baseof.html | 1 +
layouts/partials/site-head.html | 0
2 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 67f1415..31030a8 100755
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -42,6 +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 }}
</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/site-head.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/site-head.html
--
Gitblit v1.10.0