From b02b6144ac168339572ff91e09b11a16b3f303a2 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sat, 26 Dec 2015 15:37:59 +0100 Subject: [PATCH] Add local config to disable disqus and analytics --- _config.yml | 3 +++ _includes/disqus.html | 2 ++ _includes/google_analytics.html | 2 ++ _local_config.yml | 2 ++ 4 files changed, 9 insertions(+) create mode 100644 _local_config.yml diff --git a/_config.yml b/_config.yml index c975528f..51952688 100644 --- a/_config.yml +++ b/_config.yml @@ -42,3 +42,6 @@ contact: '/contact.html' gems: - jekyll-redirect-from - jekyll-sitemap + +enable_disqus: true +enable_analytics: true diff --git a/_includes/disqus.html b/_includes/disqus.html index 4d6216d5..533ec365 100644 --- a/_includes/disqus.html +++ b/_includes/disqus.html @@ -1,3 +1,4 @@ +{% if site.enable_disqus %}
+{% endif %} diff --git a/_includes/google_analytics.html b/_includes/google_analytics.html index e2c5f970..75b15fca 100644 --- a/_includes/google_analytics.html +++ b/_includes/google_analytics.html @@ -1,3 +1,4 @@ +{% if site.enable_analytics %} +{% endif %} diff --git a/_local_config.yml b/_local_config.yml new file mode 100644 index 00000000..84f54206 --- /dev/null +++ b/_local_config.yml @@ -0,0 +1,2 @@ +enable_disqus: false +enable_analytics: false