Skip to content

Commit 9b27312

Browse files
committed
Revert "Site.Safe Replacement for Detecting Production Environment"
1 parent 42aa9b6 commit 9b27312

File tree

6 files changed

+4
-52
lines changed

6 files changed

+4
-52
lines changed

_includes/JB/analytics

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
{% include JB/is_production %}
2-
3-
{% if is_production and site.JB.analytics.provider and page.JB.analytics != false %}
1+
{% if site.safe and site.JB.analytics.provider and page.JB.analytics != false %}
42

53
{% case site.JB.analytics.provider %}
64
{% when "google" %}

_includes/JB/comments-providers/disqus

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<div id="disqus_thread"></div>
22
<script type="text/javascript">
3-
{% include JB/is_production %}
4-
{% if is_production == false %}var disqus_developer = 1;{% endif %}
3+
{% if site.safe == false %}var disqus_developer = 1;{% endif %}
54
var disqus_shortname = '{{ site.JB.comments.disqus.short_name }}'; // required: replace example with your forum shortname
65
{% if page.wordpress_id %}var disqus_identifier = '{{page.wordpress_id}} {{site.production_url}}/?p={{page.wordpress_id}}';{% endif %}
76
/* * * DON'T EDIT BELOW THIS LINE * * */

_includes/JB/is_production

Lines changed: 0 additions & 39 deletions
This file was deleted.

_includes/JB/setup

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
<!--
33
- Dynamically set liquid variables for working with URLs/paths
44
-->
5-
{% include JB/is_production %}
65
{% if site.JB.setup.provider == "custom" %}
76
{% include custom/setup %}
87
{% else %}
9-
{% if is_production and site.JB.BASE_PATH and site.JB.BASE_PATH != '' %}
8+
{% if site.safe and site.JB.BASE_PATH and site.JB.BASE_PATH != '' %}
109
{% assign BASE_PATH = site.JB.BASE_PATH %}
1110
{% assign HOME_PATH = site.JB.BASE_PATH %}
1211
{% else %}

_includes/JB/sharing

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{% include JB/is_production %}
2-
{% if is_production and site.JB.sharing.provider and page.JB.sharing != false %}
1+
{% if site.safe and site.JB.sharing.provider and page.JB.sharing != false %}
32

43
{% case site.JB.sharing.provider %}
54
{% when "custom" %}

index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,4 @@ Here's a sample "posts list".
4343
This theme is still unfinished. If you'd like to be added as a contributor, [please fork](http://github.com/plusjade/jekyll-bootstrap)!
4444
We need to clean up the themes, make theme usage guides with theme-specific markup examples.
4545

46-
{% include JB/is_production %}
47-
48-
## Production Mode?
4946

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

0 commit comments

Comments
 (0)