1
0
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:
Mark Otto
2013-07-19 14:08:16 -07:00
parent 4b0fa356f3
commit f25d8c0080
3 changed files with 32 additions and 26 deletions

View File

@@ -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 %}

View File

@@ -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 %}

View File

@@ -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>