aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorFrank Blechschmidt <contact@frank-blechschmidt.com>2020-10-18 23:05:57 -0700
committerGitHub <noreply@github.com>2020-10-18 23:05:57 -0700
commitcd39fa3b0a5a26c04c83c15d90118518c4413593 (patch)
tree7146a350477528ed50f59a1f23e81d66f80d6a57 /layouts/partials
parent9a41223e9fe2336ad0ffe877e8287c084151fd2d (diff)
Add support for Google Analytics
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/head.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index ccc1403..44c0415 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -6,6 +6,10 @@
<base href="{{ .Site.BaseURL }}">
<meta name="description" content="{{ .Site.Params.description }}">
<meta name="author" content='{{ .Site.Params.author }}'>
+
+ {{- if not .Site.IsServer -}}
+ {{ template "_internal/google_analytics.html" . }}
+ {{- end -}}
<link href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">