Add simple analytics

This commit is contained in:
Oskar Thoren 2019-07-19 14:25:48 +08:00
parent 056e87680d
commit 016df532f2
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
3 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,8 @@ url: "https://vac.dev" # the base hostname & protocol for your site, e.g. http:/
twitter_username: vacp2p
github_username: vacp2p
simple_analytics: true
# Build settings
markdown: kramdown
theme: minima

View File

@ -9,6 +9,10 @@
{%- include google-analytics.html -%}
{%- endif -%}
{%- if jekyll.environment == 'production' and site.simple_analytics -%}
{%- include simple-analytics.html -%}
{%- endif -%}
<!-- Twitter cards -->
<meta name="twitter:site" content="@{{ site.twitter_username }}">
<meta name="twitter:creator" content="@{{ page.author }}">

View File

@ -0,0 +1,2 @@
<script async defer src="https://cdn.simpleanalytics.io/hello.js"></script>
<noscript><img src="https://api.simpleanalytics.io/hello.gif" alt=""></noscript>