diff options
author | runningstream <runningstreamllc@gmail.com> | 2019-06-09 06:24:45 +0300 |
---|---|---|
committer | runningstream <runningstreamllc@gmail.com> | 2019-06-09 06:24:45 +0300 |
commit | 0de72915d21e7af0831c46da0afbe67830af641c (patch) | |
tree | 130e5a2b33dd8335b46a6bdfda2c629407b9bbd7 | |
parent | ddf6f3107de173614ee3ddcfd7084f204efd6dd5 (diff) |
Fix google analytics piece and theme name
-rw-r--r-- | exampleSite/config.toml | 4 | ||||
-rw-r--r-- | exampleSite/config_for_github_pages.toml | 6 | ||||
-rw-r--r-- | layouts/partials/head.html | 12 |
3 files changed, 6 insertions, 16 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 4734534..ed6f0cb 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,9 +1,9 @@ baseURL = "http://example.com/" languageCode = "en-us" title = "Hugo Grayscale Theme" -theme = "grayscale" +theme = "hugograyscale" +#googleAnalytics = "" [params] # Provide some metadata for search and indexing services description = "A port of the Grayscale theme to Hugo" author = "RunningStream" - #googleAnalytics = "" diff --git a/exampleSite/config_for_github_pages.toml b/exampleSite/config_for_github_pages.toml index b91f90e..909e93d 100644 --- a/exampleSite/config_for_github_pages.toml +++ b/exampleSite/config_for_github_pages.toml @@ -1,9 +1,9 @@ baseURL = "https://runningstream.github.io/hugograyscale/" languageCode = "en-us" title = "Hugo Grayscale Theme" -theme = "grayscale" -[Params] +theme = "hugograyscale" +#googleAnalytics = "" +[params] # Provide some metadata for search and indexing services description = "A port of the Grayscale theme to Hugo" author = "RunningStream" - #googleAnalytics = "" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 21b9921..cc58ec0 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -26,14 +26,4 @@ <!-- Custom styles for this template --> <link href="{{ "css/grayscale.min.css" | relURL }}" rel="stylesheet"> - {{ with .Site.Params.googleAnalytics }} - <!-- Global site tag (gtag.js) - Google Analytics --> - <script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script> - <script> - window.dataLayer = window.dataLayer || []; - function gtag(){dataLayer.push(arguments);} - gtag('js', new Date()); - - gtag('config', '{{ . }}'); - </script> - {{ end }} + {{ template "_internal/google_analytics_async.html" . }} |