mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-20 20:31:26 +02:00
hacky way of not showing ads or analytics in local dev
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
<script src="/assets/js/application.js"></script>
|
<script src="/assets/js/application.js"></script>
|
||||||
|
|
||||||
|
{% unless site.port != "9001" %}
|
||||||
<!-- Analytics
|
<!-- Analytics
|
||||||
================================================== -->
|
================================================== -->
|
||||||
<script>
|
<script>
|
||||||
@@ -24,3 +25,4 @@
|
|||||||
s.parentNode.insertBefore(t, s);
|
s.parentNode.insertBefore(t, s);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
{% endunless %}
|
||||||
|
@@ -33,6 +33,7 @@
|
|||||||
<link rel="apple-touch-icon-precomposed" href="/assets/ico/apple-touch-icon-57-precomposed.png">
|
<link rel="apple-touch-icon-precomposed" href="/assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
<link rel="shortcut icon" href="/assets/ico/favicon.png">
|
<link rel="shortcut icon" href="/assets/ico/favicon.png">
|
||||||
|
|
||||||
|
{% unless site.port != "9001" %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var _gaq = _gaq || [];
|
var _gaq = _gaq || [];
|
||||||
_gaq.push(['_setAccount', 'UA-146052-10']);
|
_gaq.push(['_setAccount', 'UA-146052-10']);
|
||||||
@@ -43,3 +44,4 @@
|
|||||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
{% endunless %}
|
||||||
|
@@ -15,7 +15,9 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>{{ page.title }}</h1>
|
<h1>{{ page.title }}</h1>
|
||||||
<p>{{ page.lead }}</p>
|
<p>{{ page.lead }}</p>
|
||||||
|
{% unless site.port != "9001" %}
|
||||||
{% include ads.html %}
|
{% include ads.html %}
|
||||||
|
{% endunless %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user