diff options
author | Frank Blechschmidt <contact@frank-blechschmidt.com> | 2020-10-19 09:05:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-19 09:05:57 +0300 |
commit | 8ea7e1fe955ec302637c0982534b0adf4439a60c (patch) | |
tree | 7146a350477528ed50f59a1f23e81d66f80d6a57 | |
parent | 5beceabfd6a64d55737b035520dc9f9ffaa5e95b (diff) |
Add support for Google Analytics
-rw-r--r-- | layouts/partials/head.html | 4 |
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"> |