layouts/partials: Move Google Analytics template into head

Necessary for proof of ownership via Google Search Console

Signed-off-by: eekotenok1 <eekotenok1@gmail.com>
This commit is contained in:
eekotenok1 2021-04-11 16:19:29 +03:00
parent c65d56dc7e
commit f794572c7c
2 changed files with 5 additions and 4 deletions

View file

@ -66,3 +66,8 @@
{{- if templates.Exists "partials/extra-head.html" -}}
{{ partial "extra-head.html" . }}
{{- end }}
<!-- Google Analytics internal template -->
{{- if .Site.GoogleAnalytics }}
{{ template "_internal/google_analytics.html" . }}
{{- end}}