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:
kimcc 2020-04-15 17:20:40 -05:00 committed by GitHub
commit bd6a3c34fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}
{{ template "_internal/google_analytics.html" . }}
</head>
{{- if not .Site.IsServer -}}
{{ template "_internal/google_analytics.html" . }}
{{- end -}}
</head>