Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ojroques/hugo-researcher.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Roques <ojroques@users.noreply.github.com>2020-10-19 10:02:27 +0300
committerGitHub <noreply@github.com>2020-10-19 10:02:27 +0300
commit9e8c2293a4ddf71ef39ed359296d791fb0e0a814 (patch)
tree7146a350477528ed50f59a1f23e81d66f80d6a57
parent5beceabfd6a64d55737b035520dc9f9ffaa5e95b (diff)
parent8ea7e1fe955ec302637c0982534b0adf4439a60c (diff)
Merge pull request #4 from FraBle/patch-1
Add support for Google Analytics
-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">