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

github.com/kimcc/hugo-theme-noteworthy.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.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b517fd1..b160657 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -29,5 +29,7 @@
{{ with .OutputFormats.Get "RSS" }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end }}
- {{ template "_internal/google_analytics.html" . }}
+ {{- if not .Site.IsServer -}}
+ {{ template "_internal/google_analytics.html" . }}
+ {{- end -}}
</head>