Add GoatCounter
This commit is contained in:
parent
7dd9e4b11f
commit
22f04c785f
@ -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
|
||||
|
@ -42,8 +42,8 @@
|
||||
|
||||
<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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user