From 8fe0db836f0d946e39a8eabaa4c0b975d1c356b6 Mon Sep 17 00:00:00 2001 From: groundh0g Date: Thu, 19 Mar 2015 18:29:46 -0500 Subject: [PATCH] Resolution for 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 @@