From 2e0ef75edf86bd6b350f153b3791e2a453b1e95e Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Mon, 20 Jul 2020 20:13:51 +0530
Subject: [PATCH] separate head
---
layouts/partials/head.html | 36 +++++++++++++++++++++++++++++++++++
layouts/partials/header.html | 37 +-----------------------------------
2 files changed, 37 insertions(+), 36 deletions(-)
create mode 100644 layouts/partials/head.html
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..91687be
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,36 @@
+
+
+
+
+
{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}
+
+{{- if eq .Kind "page" }}
+
+
+{{- else }}
+
+
+{{- end }}
+
+{{ $anoldhope := resources.Get "an-old-hope.min.css" | minify }}
+{{ $style := resources.Get "style.css" | minify }}
+{{ $stylesheet := slice $anoldhope $style | resources.Concat "stylesheet.css" | minify }}
+
+
+
+
+
+
+{{- hugo.Generator }}
+
+{{ range .AlternativeOutputFormats -}}
+{{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+{{ end -}}
+
+{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
+{{- template "_internal/google_analytics_async.html" . }}
+{{- template "_internal/opengraph.html" . }}
+{{- end }}
+
+{{ $settheme := resources.Get "set-theme.js" | minify }}
+
\ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index d110ffd..938d24c 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -2,42 +2,7 @@
-
-
-
-
- {{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}
-
- {{- if eq .Kind "page" }}
-
-
- {{- else }}
-
-
- {{- end }}
-
- {{ $anoldhope := resources.Get "an-old-hope.min.css" | minify }}
- {{ $style := resources.Get "style.css" | minify }}
- {{ $stylesheet := slice $anoldhope $style | resources.Concat "stylesheet.css" | minify }}
-
-
-
-
-
-
- {{- hugo.Generator }}
-
- {{ range .AlternativeOutputFormats -}}
- {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
- {{ end -}}
-
- {{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
- {{- template "_internal/google_analytics_async.html" . }}
- {{- template "_internal/opengraph.html" . }}
- {{- end }}
-
- {{ $settheme := resources.Get "set-theme.js" | minify }}
-
+ {{- partial "head.html" . }}