Merge pull request #290 from eekotenok1/google-verify
layouts/partials: Move Google Analytics template into head
This commit is contained in:
commit
71a3df2cc2
2 changed files with 5 additions and 4 deletions
|
@ -66,3 +66,8 @@
|
||||||
{{- if templates.Exists "partials/extra-head.html" -}}
|
{{- if templates.Exists "partials/extra-head.html" -}}
|
||||||
{{ partial "extra-head.html" . }}
|
{{ partial "extra-head.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
<!-- Google Analytics internal template -->
|
||||||
|
{{- if .Site.GoogleAnalytics }}
|
||||||
|
{{ template "_internal/google_analytics.html" . }}
|
||||||
|
{{- end}}
|
||||||
|
|
|
@ -4,10 +4,6 @@
|
||||||
{{ $secureJS := slice $main $menu $prism | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint "sha512" }}
|
{{ $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>
|
<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 }}
|
{{ range $val := $.Site.Params.customJS }}
|
||||||
{{ if gt (len $val) 0 }}
|
{{ if gt (len $val) 0 }}
|
||||||
<script src="{{ $val }}"></script>
|
<script src="{{ $val }}"></script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue