diff options
author | invinciblycool <jprrahultiwari@gmail.com> | 2020-06-18 13:57:34 +0300 |
---|---|---|
committer | invinciblycool <jprrahultiwari@gmail.com> | 2020-06-18 13:57:34 +0300 |
commit | 46e85a33cef5f134d483f7c58213375668f9ff86 (patch) | |
tree | 6c11ddf65b13855a6a2b761e881256cb1476f507 | |
parent | b2646b45c5c4395f0401922a34988ac7bf502fe6 (diff) |
Add GoatCounter
-rw-r--r-- | .personalize.toml | 3 | ||||
-rw-r--r-- | layouts/index.html | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/.personalize.toml b/.personalize.toml index 229cf51..a113bda 100644 --- a/.personalize.toml +++ b/.personalize.toml @@ -26,3 +26,6 @@ url = "" [[profiles]] name = "LinkedIn" url = "" + +[[analytics]] +code = "" diff --git a/layouts/index.html b/layouts/index.html index 3fcfb43..0161c53 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -10,7 +10,7 @@ <table> {{ range .Site.Data.personalize.profiles }} - {{ partial "profile_link.html" . }} + {{ partial "profile_link.html" . }} {{ end }} <tr> {{ if ne .Site.Data.personalize.Resume "" }} @@ -42,8 +42,9 @@ <h3><a href="posts/">View all posts</a></h3> </div> - - + {{ if ne .Site.Data.personalize.analytics.code ""}} + <script data-goatcounter="{{ .Site.Data.personalize.analytics.code }}" async src="//gc.zgo.at/count.js"></script> + {{ end }} </body> -</html> +</html>
\ No newline at end of file |