exclude google analytics when running under hugo local server

This commit is contained in:
kendo5731 2020-04-03 12:48:44 +02:00
parent 9ec04a2978
commit ddd7778465

View File

@ -29,5 +29,8 @@
{{ 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>