summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNortherner-coder <50540933+Northerner-coder@users.noreply.github.com>2020-10-18 10:51:42 -0400
committerGitHub <noreply@github.com>2020-10-18 20:21:42 +0530
commitb720e4a523c9c918408b89de6999a1b6a1a4477c (patch)
tree1729c07a566b48b655911018e69f7402cdc9efa1
parent7db1be3d7349eaba2dd87bfeb240b8bc120f4663 (diff)
extended_head: init (#44)
* add placeholder template for extending head
-rw-r--r--layouts/partials/extend_head.html5
-rw-r--r--layouts/partials/head.html1
2 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/extend_head.html b/layouts/partials/extend_head.html
new file mode 100644
index 0000000..d372acc
--- /dev/null
+++ b/layouts/partials/extend_head.html
@@ -0,0 +1,5 @@
+<!-- Head custom content area start -->
+<!--
+Insert any custom code (web-analytics, resources, etc.) - it will appear in the <head></head> section of every page. Can be overwritten by partial with the same name in the global layouts.
+-->
+<!-- Head custom content area end --> \ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 41a6b6d..48b5d35 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -45,6 +45,7 @@
{{- range .AlternativeOutputFormats -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
{{ end -}}
+{{- partial "extend_head.html" . -}}
<!-- Misc -->
{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
{{- template "_internal/google_analytics_async.html" . }}