From 10125d8fe1dae8b95ba3df96c419a369fac3eac5 Mon Sep 17 00:00:00 2001 From: Mike Bergeron Date: Wed, 4 Jul 2018 05:29:28 -0700 Subject: Use Hugo's internal templates for Google Analytics (GA) (#36) * Use Hugo's internal templates for Google Analytics (GA) This commit does the following: * Removes a hardcoded Google Analytics ID * Converts the layout to use Hugo's internal GA teamplate * Removes the configuration items from the example site * Adds a section to the README about what internal templates are supported. For more info about the GA internal template, see this URL: https://gohugo.io/templates/internal/#configure-google-analytics Signed-off-by: Michael Bergeron * Add Google Analytics config into exampleSite * Add google analytics template to single.html * Bump version to 3.0.0 Breaking change based on google analytics configuration --- layouts/index.html | 1 + 1 file changed, 1 insertion(+) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index b45fb1c..ae90e4d 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -60,6 +60,7 @@ {{ partial "copyright" . }} + {{ template "_internal/google_analytics.html" . }} {{ partial "scripts/index" . }} -- cgit v1.2.3