From 35876ce06ad4d1a38f24f4b59a0b215371f2503c Mon Sep 17 00:00:00 2001 From: groundh0g Date: Tue, 31 Mar 2015 23:48:52 -0400 Subject: [PATCH] Fixes issue #84. --- _includes/JB/analytics | 4 ++- _includes/JB/comments-providers/disqus | 3 +- _includes/JB/is_production | 39 ++++++++++++++++++++++++++ _includes/JB/setup | 3 +- _includes/JB/sharing | 3 +- 5 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 _includes/JB/is_production diff --git a/_includes/JB/analytics b/_includes/JB/analytics index 951a0e3..13c172d 100644 --- a/_includes/JB/analytics +++ b/_includes/JB/analytics @@ -1,4 +1,6 @@ -{% if site.safe and site.JB.analytics.provider and page.JB.analytics != false %} +{% include JB/is_production %} + +{% if is_production and site.JB.analytics.provider and page.JB.analytics != false %} {% case site.JB.analytics.provider %} {% when "google" %} diff --git a/_includes/JB/comments-providers/disqus b/_includes/JB/comments-providers/disqus index 618a7b7..6343100 100644 --- a/_includes/JB/comments-providers/disqus +++ b/_includes/JB/comments-providers/disqus @@ -1,6 +1,7 @@