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