diff options
author | Olivier Roques <ojroques@users.noreply.github.com> | 2020-10-19 09:02:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-19 09:02:27 +0200 |
commit | caff4373f8fa9ddb89c3a855c8799b7de6fc4655 (patch) | |
tree | 7146a350477528ed50f59a1f23e81d66f80d6a57 /layouts | |
parent | 9a41223e9fe2336ad0ffe877e8287c084151fd2d (diff) | |
parent | cd39fa3b0a5a26c04c83c15d90118518c4413593 (diff) |
Merge pull request #4 from FraBle/patch-1
Add support for Google Analytics
Diffstat (limited to 'layouts')
-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"> |