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

@ -4,10 +4,6 @@
{{ $secureJS := slice $main $menu $prism | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint "sha512" }}
<script type="text/javascript" src="{{ $secureJS.RelPermalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
{{- if .Site.GoogleAnalytics }}
{{ template "_internal/google_analytics.html" . }}
{{- end}}
{{ range $val := $.Site.Params.customJS }}
{{ if gt (len $val) 0 }}
<script src="{{ $val }}"></script>