exclude google analytics when running under hugo local server
This commit is contained in:
parent
9ec04a2978
commit
ddd7778465
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user