diff options
| author | Mark Otto <[email protected]> | 2013-07-19 14:08:16 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-07-19 14:08:16 -0700 |
| commit | f25d8c008041bbc6a008fab92915ca0073941ff0 (patch) | |
| tree | 4eb90b045f79db9f82fd691dc78f097cb8c3a44e /_includes/header.html | |
| parent | 4b0fa356f3c00c850ec56815f8a8e07eb927c960 (diff) | |
| download | bootstrap-f25d8c008041bbc6a008fab92915ca0073941ff0.tar.xz bootstrap-f25d8c008041bbc6a008fab92915ca0073941ff0.zip | |
hacky way of not showing ads or analytics in local dev
Diffstat (limited to '_includes/header.html')
| -rw-r--r-- | _includes/header.html | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/_includes/header.html b/_includes/header.html index 35c2df084..cd59fcd54 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -33,13 +33,15 @@ <link rel="apple-touch-icon-precomposed" href="/assets/ico/apple-touch-icon-57-precomposed.png"> <link rel="shortcut icon" href="/assets/ico/favicon.png"> -<script type="text/javascript"> - var _gaq = _gaq || []; - _gaq.push(['_setAccount', 'UA-146052-10']); - _gaq.push(['_trackPageview']); - (function() { - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); - })(); -</script> +{% unless site.port != "9001" %} + <script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-146052-10']); + _gaq.push(['_trackPageview']); + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + </script> +{% endunless %} |
