From 3f18e910c8f4805c4d27fc0ab0976aa52f63efbe Mon Sep 17 00:00:00 2001 From: AnimMouse Date: Tue, 2 Jun 2020 14:24:27 +0800 Subject: [PATCH] Add custom head partial --- layouts/_default/baseof.html | 1 + layouts/partials/site-head.html | 0 2 files changed, 1 insertion(+) create mode 100644 layouts/partials/site-head.html 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 }} diff --git a/layouts/partials/site-head.html b/layouts/partials/site-head.html new file mode 100644 index 0000000..e69de29