mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 10:18:40 +00:00
Switch to Hugo's internal GA variable
This commit is contained in:
1 parent
149abc4ef9
commit
22351f4af3
2 files changed
+4
-4
No files matched your search
+3
-3
@@ -51,17 +51,17 @@ verbose = false
|
|||||||
verboseLog = false
|
verboseLog = false
|
||||||
# Setting this to false will keep hugo from watching for changes during local development
|
# Setting this to false will keep hugo from watching for changes during local development
|
||||||
watch = true
|
watch = true
|
||||||
|
# Add GA Tracking Code Here. This leverages a built-in (ie, "internal") partial from HUGO: https://gohugo.io/extras/analytics#configuring-google-analytics
|
||||||
|
googleAnalytics = ""
|
||||||
|
|
||||||
[permalinks]
|
[permalinks]
|
||||||
temp = "/:title"
|
temp = "/:title"
|
||||||
|
|
||||||
#CUSTOM PARAMS
|
#CUSTOM PARAMS
|
||||||
[params]
|
[params]
|
||||||
organizationname = ""
|
organizationname = ""
|
||||||
sitedescription = ""
|
sitedescription = ""
|
||||||
release = "0.20"
|
release = "0.20"
|
||||||
# Add GA Tracking Code Here. This leverages a built-in (ie, "internal") partial from HUGO: https://gohugo.io/extras/analytics#configuring-google-analytics
|
|
||||||
googleanalyticstrackingcode = ""
|
|
||||||
## Critical Render Path. If true, site style will be embedded in a <style> tag in each html <head> as part of Gulp Build. False puts a typical <link> to the stylesheet in <head>>
|
## Critical Render Path. If true, site style will be embedded in a <style> tag in each html <head> as part of Gulp Build. False puts a typical <link> to the stylesheet in <head>>
|
||||||
usecrp = false
|
usecrp = false
|
||||||
## Twitter handle without the "@"
|
## Twitter handle without the "@"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<!-- <script src="/js/vendor/jquery-2.2.4.min.js"></script> -->
|
<!-- <script src="/js/vendor/jquery-2.2.4.min.js"></script> -->
|
||||||
<script src="/js/script.min.js" async defer></script>
|
<script src="/js/script.min.js" async defer></script>
|
||||||
{{$gaid := .Site.Params.googleanalyticstrackingcode }}
|
{{$gaid := .Site.GoogleAnalytics }}
|
||||||
<!-- GitHub Buttons -->
|
<!-- GitHub Buttons -->
|
||||||
<!-- <script async defer src="https://buttons.github.io/buttons.js"></script> -->
|
<!-- <script async defer src="https://buttons.github.io/buttons.js"></script> -->
|
||||||
<!-- Google Analytics -->
|
<!-- Google Analytics -->
|
||||||
|
|||||||
Reference in new issue
Block a user