Update baseof.html

Don't publish analytics events during development
Solution from https://discourse.gohugo.io/t/how-to-exclude-google-analytics-when-running-under-hugo-local-server/6092/34
This commit is contained in:
Philippe Vinchon 2020-02-23 23:14:53 +00:00 committed by Andreas Deininger
parent 32d39a31c7
commit 2736df1a57
1 changed files with 3 additions and 1 deletions

View File

@ -74,6 +74,8 @@
<script src="{{ . | relURL }}"></script> <script src="{{ . | relURL }}"></script>
{{- end}} {{- end}}
{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }} {{ template "_internal/google_analytics_async.html" . }}
{{ end }}
</body> </body>
</html> </html>