From 45bf884ff91685d2b038bc258b1e3c8c5a995c36 Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Wed, 7 Sep 2016 14:04:43 +0900 Subject: [PATCH 1/5] Backport of plusjade/jekyll-bootstrap#262 for website --- _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 48d87c25fa0..bbb93af6dca 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_classic" %} diff --git a/_includes/JB/comments-providers/disqus b/_includes/JB/comments-providers/disqus index 618a7b737bd..6343100301a 100644 --- a/_includes/JB/comments-providers/disqus +++ b/_includes/JB/comments-providers/disqus @@ -1,6 +1,7 @@