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: separate head --- layouts/partials/head.html | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 layouts/partials/head.html (limited to '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 -- cgit v1.2.3