Adding the option to turn off Google Analytics & Fix Latest Posts List (#144)

* adding option to turn off Google Analytics

* fixing the latest posts list
This commit is contained in:
Aaron Schlesinger
2020-05-17 02:13:03 -07:00
committed by GitHub
parent 9ea1d79fb2
commit 038d6623a0
2 changed files with 6 additions and 2 deletions

View File

@@ -41,7 +41,9 @@ fathom('trackPageview');
<!-- / Fathom -->
{{ end }}
{{ if .Site.Params.googleAnalyticsEnabled }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
<script>
window.onload = function() {