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

github.com/zwbetz-gh/papercss-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 68540ee..009893f 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -29,10 +29,14 @@
{{ $customCssPath := "css/custom.css" }}
{{ $customCss:= resources.Get $customCssPath | resources.ExecuteAsTemplate $customCssPath . }}
<link rel="stylesheet" type="text/css" href="{{ $customCss.RelPermalink }}">
+
+ {{ if hugo.IsProduction }}
+ {{ template "_internal/google_analytics.html" . }}
+ {{ end }}
{{ $title := print .Title " | " .Site.Title }}
{{ if .IsHome }}
{{ $title = .Site.Title }}
{{ end }}
<title>{{ $title }}</title>
-</head> \ No newline at end of file
+</head>