Uses jekyll.environment value to enable or disable disqus and google analytics on serve
This commit is contained in:
chipset 2015-11-21 21:49:43 +05:30
parent 1bcb7b68a8
commit ffa7cff17c
2 changed files with 7 additions and 4 deletions

View file

@ -39,7 +39,8 @@ $(window).scroll(toggleNavCollapse);$(function(){$("a.page-scroll").bind("click"
{% endif %}
{% if site.google-tracking-id %}
{% if jekyll.environment == "production" %}
{% if site.google-tracking-id %}
<!-- Google Tracking Id Start -->
@ -54,9 +55,9 @@ $(window).scroll(toggleNavCollapse);$(function(){$("a.page-scroll").bind("click"
<!-- Google Tracking Id End -->
{% endif %}
{% endif %}
{% if site.disqus-shortname %}
<!-- Disqus -->