Skip to content

Commit

Permalink
Merge pull request #261 from plusjade/revert-260-jb-issue-84
Browse files Browse the repository at this point in the history
Revert "Site.Safe Replacement for Detecting Production Environment"
  • Loading branch information
groundh0g committed Apr 1, 2015
2 parents 7a04f0b + ff3bc1d commit bc63f77
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 52 deletions.
4 changes: 1 addition & 3 deletions _includes/JB/analytics
@@ -1,6 +1,4 @@
{% include JB/is_production %}

{% if is_production and site.JB.analytics.provider and page.JB.analytics != false %}
{% if site.safe and site.JB.analytics.provider and page.JB.analytics != false %}

{% case site.JB.analytics.provider %}
{% when "google" %}
Expand Down
3 changes: 1 addition & 2 deletions _includes/JB/comments-providers/disqus
@@ -1,7 +1,6 @@
<div id="disqus_thread"></div>
<script type="text/javascript">
{% include JB/is_production %}
{% if is_production == false %}var disqus_developer = 1;{% endif %}
{% if site.safe == false %}var disqus_developer = 1;{% endif %}
var disqus_shortname = '{{ site.JB.comments.disqus.short_name }}'; // required: replace example with your forum shortname
{% if page.wordpress_id %}var disqus_identifier = '{{page.wordpress_id}} {{site.production_url}}/?p={{page.wordpress_id}}';{% endif %}
/* * * DON'T EDIT BELOW THIS LINE * * */
Expand Down
39 changes: 0 additions & 39 deletions _includes/JB/is_production

This file was deleted.

3 changes: 1 addition & 2 deletions _includes/JB/setup
Expand Up @@ -2,11 +2,10 @@
<!--
- Dynamically set liquid variables for working with URLs/paths
-->
{% include JB/is_production %}
{% if site.JB.setup.provider == "custom" %}
{% include custom/setup %}
{% else %}
{% if is_production and site.JB.BASE_PATH and site.JB.BASE_PATH != '' %}
{% if site.safe and site.JB.BASE_PATH and site.JB.BASE_PATH != '' %}
{% assign BASE_PATH = site.JB.BASE_PATH %}
{% assign HOME_PATH = site.JB.BASE_PATH %}
{% else %}
Expand Down
3 changes: 1 addition & 2 deletions _includes/JB/sharing
@@ -1,5 +1,4 @@
{% include JB/is_production %}
{% if is_production and site.JB.sharing.provider and page.JB.sharing != false %}
{% if site.safe and site.JB.sharing.provider and page.JB.sharing != false %}

{% case site.JB.sharing.provider %}
{% when "custom" %}
Expand Down
4 changes: 0 additions & 4 deletions index.md
Expand Up @@ -43,8 +43,4 @@ Here's a sample "posts list".
This theme is still unfinished. If you'd like to be added as a contributor, [please fork](http://github.com/plusjade/jekyll-bootstrap)!
We need to clean up the themes, make theme usage guides with theme-specific markup examples.

{% include JB/is_production %}

## Production Mode?

This site is {% if is_production != true %}not{% endif %} running in production mode. The environment is "{{jb_prod_env}}".

0 comments on commit bc63f77

Please sign in to comment.