Fix for #100
Uses jekyll.environment value to enable or disable disqus and google analytics on serve
This commit is contained in:
parent
1bcb7b68a8
commit
ffa7cff17c
2 changed files with 7 additions and 4 deletions
|
|
@ -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 -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue