diff --git a/src/layouts/partials/analytics.html b/src/layouts/partials/analytics.html index 7bc14907b..c238a6276 100644 --- a/src/layouts/partials/analytics.html +++ b/src/layouts/partials/analytics.html @@ -1 +1 @@ - + diff --git a/src/layouts/partials/head.html b/src/layouts/partials/head.html index b1b5f1713..31ce3eb3c 100644 --- a/src/layouts/partials/head.html +++ b/src/layouts/partials/head.html @@ -24,4 +24,6 @@ {{ partial "stylesheet" . -}} {{ partial "favicons" . -}} {{ partial "social" . -}} +{{- if hugo.IsProduction }} {{ partial "analytics" . -}} +{{- end }}