From 7c2273f23d631fcf55bb91f25e960287cbebfcd3 Mon Sep 17 00:00:00 2001 From: Maaz Syed Adeeb Date: Mon, 27 Nov 2017 22:41:32 +0530 Subject: [PATCH 1/2] Remove analytics in dev environment (#1362) --- _includes/analytics.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/analytics.html b/_includes/analytics.html index 64a3359a..5448a506 100644 --- a/_includes/analytics.html +++ b/_includes/analytics.html @@ -1,4 +1,4 @@ -{% if site.analytics.provider and page.analytics != false %} +{% if jekyll.environment == 'production' and site.analytics.provider and page.analytics != false %} {% case site.analytics.provider %} {% when "google" %} From 1b3cc608bbc400a2d2d91ce52f732a6467024544 Mon Sep 17 00:00:00 2001 From: Maaz Syed Adeeb Date: Mon, 27 Nov 2017 22:42:22 +0530 Subject: [PATCH 2/2] Remove comments in dev environment (#1363) --- _layouts/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/single.html b/_layouts/single.html index 6997cf10..49d92130 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -63,7 +63,7 @@ layout: default {% include post_pagination.html %} - {% if site.comments.provider and page.comments %} + {% if jekyll.environment == 'production' and site.comments.provider and page.comments %} {% include comments.html %} {% endif %}