Modularize analytics and add extra headers (#26)
This commit is contained in:
parent
97395d876c
commit
97cc83914f
3 changed files with 11 additions and 1 deletions
|
@ -28,6 +28,9 @@
|
|||
{{ range .Site.Params.CustomCSS -}}
|
||||
<link rel="stylesheet" href="{{ . | absURL }}">
|
||||
{{- end }}
|
||||
{{ if templates.Exists "partials/extra-headers.html" -}}
|
||||
{{ partial "extra-headers.html" . }}
|
||||
{{- end }}
|
||||
</head>
|
||||
|
||||
<body id="page">
|
||||
|
@ -36,7 +39,7 @@
|
|||
{{ block "footer" . -}}{{ end }}
|
||||
{{ $script := resources.Get "js/main.js" | minify | fingerprint -}}
|
||||
<script src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }}></script>
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{ partial "analytics.html" }}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
1
layouts/partials/analytics.html
Normal file
1
layouts/partials/analytics.html
Normal file
|
@ -0,0 +1 @@
|
|||
{{ template "_internal/google_analytics_async.html" . }}
|
Loading…
Add table
Add a link
Reference in a new issue