From a83b4c3199f1030235caeac81afdbbcc87f8a298 Mon Sep 17 00:00:00 2001 From: vimux Date: Sun, 10 Mar 2019 12:47:21 -0400 Subject: [PATCH] Move head section to baseof.html Unfortunately, blocks not work in nested partials. --- layouts/_default/baseof.html | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ed388a9..6577dd7 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,6 +1,38 @@ -{{ partial "head.html" . }} + + + + + + {{ block "title" . }}{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}{{ end }} + + + {{- if .Site.Params.opengraph }} + {{ template "_internal/opengraph.html" . }} + {{- end }} + {{- if .Site.Params.twitter_cards }} + {{ template "_internal/twitter_cards.html" . }} + {{- end }} + + {{- range .Site.Params.customCSS }} + + {{- end }} + {{- with .Site.Params.colorTheme }} + + {{- end }} + + + {{- with .OutputFormats.Get "rss" }} + {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} + {{- end }} + {{- if and (.Site.Params.Manifest) ((.Site.GetPage "home").OutputFormats.Get "manifest") -}} + + {{- end }} + {{- if not .Site.IsServer }} + {{ template "_internal/google_analytics_async.html" . }} + {{- end }} + {{ partial "header" . }}