Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/invinciblycool/lekh.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinvinciblycool <jprrahultiwari@gmail.com>2020-06-18 14:16:10 +0300
committerinvinciblycool <jprrahultiwari@gmail.com>2020-06-18 14:16:10 +0300
commit9be6b41d25ea390f1aad77cd59756f03592755a6 (patch)
tree13d1c1bf400b7344ea63f68ca890657168ebfa10
parent46e85a33cef5f134d483f7c58213375668f9ff86 (diff)
Add GoatCounter
-rw-r--r--.personalize.toml3
-rw-r--r--README.md4
-rw-r--r--layouts/index.html6
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 = ""
diff --git a/README.md b/README.md
index 0a575ad..6067d10 100644
--- a/README.md
+++ b/README.md
@@ -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>