Merge pull request #12 from aubm/exclude-google-analytics-when-running-under-hugo-local-server
exclude google analytics when running under hugo local server
This commit is contained in:
commit
bd6a3c34fb
@ -29,6 +29,7 @@
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end }}
|
||||
{{- if not .Site.IsServer -}}
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
|
||||
{{- end -}}
|
||||
</head>
|
Loading…
Reference in New Issue
Block a user