From 016df532f27444e37cc30399d92e19ba2e55e7d1 Mon Sep 17 00:00:00 2001 From: Oskar Thoren Date: Fri, 19 Jul 2019 14:25:48 +0800 Subject: [PATCH] Add simple analytics --- _config.yml | 2 ++ _includes/head.html | 4 ++++ _includes/simple-analytics.html | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 _includes/simple-analytics.html diff --git a/_config.yml b/_config.yml index 1ab23ac..76828e2 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/_includes/head.html b/_includes/head.html index 56dc1e2..ba070eb 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -9,6 +9,10 @@ {%- include google-analytics.html -%} {%- endif -%} + {%- if jekyll.environment == 'production' and site.simple_analytics -%} + {%- include simple-analytics.html -%} + {%- endif -%} + diff --git a/_includes/simple-analytics.html b/_includes/simple-analytics.html new file mode 100644 index 0000000..03e4690 --- /dev/null +++ b/_includes/simple-analytics.html @@ -0,0 +1,2 @@ + +