diff options
author | invinciblycool <jprrahultiwari@gmail.com> | 2020-06-18 14:16:10 +0300 |
---|---|---|
committer | invinciblycool <jprrahultiwari@gmail.com> | 2020-06-18 14:16:10 +0300 |
commit | 9be6b41d25ea390f1aad77cd59756f03592755a6 (patch) | |
tree | 13d1c1bf400b7344ea63f68ca890657168ebfa10 | |
parent | 46e85a33cef5f134d483f7c58213375668f9ff86 (diff) |
Add GoatCounter
-rw-r--r-- | .personalize.toml | 3 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | layouts/index.html | 6 |
3 files changed, 8 insertions, 5 deletions
diff --git a/.personalize.toml b/.personalize.toml index a113bda..fe56050 100644 --- a/.personalize.toml +++ b/.personalize.toml @@ -27,5 +27,4 @@ url = "" name = "LinkedIn" url = "" -[[analytics]] -code = "" +GoatCounterCode = "" @@ -10,6 +10,7 @@ Simple, text-focussed and minimal personal portfolio theme based on https://gith * Easy to personalize * RSS feed * Dark mode (taken from https://www.gwern.net/ as it is.) +* GoatCounter counts(analytics). Know more about GoatCounter [here](https://goatcounter.com) ## Installation @@ -65,6 +66,9 @@ url = "" name = "LinkedIn" url = "" +# This is the endpoint under the integrations section of the Site Code +GoatCounterCode = "" + ``` ## Posts diff --git a/layouts/index.html b/layouts/index.html index 0161c53..0bc4f18 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -42,9 +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> + {{ if ne .Site.Data.personalize.GoatCounterCode ""}} + <script data-goatcounter="{{ .Site.Data.personalize.GoatCounterCode }}" async src="//gc.zgo.at/count.js"></script> {{ end }} </body> -</html>
\ No newline at end of file +</html> |