Skip to content

Commit 80123fc

Browse files
committed
mo links, fix ads and analytics in gh pages
1 parent 94df809 commit 80123fc

File tree

7 files changed

+30
-38
lines changed

7 files changed

+30
-38
lines changed

_includes/footer.html

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,18 @@
99

1010
<script src="{{ page.base_url }}assets/js/application.js"></script>
1111

12-
{% unless site.port != "9001" %}
13-
<!-- Analytics
14-
================================================== -->
15-
<script>
16-
var _gauges = _gauges || [];
17-
(function() {
18-
var t = document.createElement('script');
19-
t.type = 'text/javascript';
20-
t.async = true;
21-
t.id = 'gauges-tracker';
22-
t.setAttribute('data-site-id', '4f0dc9fef5a1f55508000013');
23-
t.src = '//secure.gaug.es/track.js';
24-
var s = document.getElementsByTagName('script')[0];
25-
s.parentNode.insertBefore(t, s);
26-
})();
27-
</script>
28-
{% endunless %}
12+
<!-- Analytics
13+
================================================== -->
14+
<script>
15+
var _gauges = _gauges || [];
16+
(function() {
17+
var t = document.createElement('script');
18+
t.type = 'text/javascript';
19+
t.async = true;
20+
t.id = 'gauges-tracker';
21+
t.setAttribute('data-site-id', '4f0dc9fef5a1f55508000013');
22+
t.src = '//secure.gaug.es/track.js';
23+
var s = document.getElementsByTagName('script')[0];
24+
s.parentNode.insertBefore(t, s);
25+
})();
26+
</script>

_includes/header.html

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,13 @@
3131
<link rel="apple-touch-icon-precomposed" href="{{ page.base_url }}assets/ico/apple-touch-icon-57-precomposed.png">
3232
<link rel="shortcut icon" href="{{ page.base_url }}assets/ico/favicon.png">
3333

34-
{% unless site.port != "9001" %}
35-
<script type="text/javascript">
36-
var _gaq = _gaq || [];
37-
_gaq.push(['_setAccount', 'UA-146052-10']);
38-
_gaq.push(['_trackPageview']);
39-
(function() {
40-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
41-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
42-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
43-
})();
44-
</script>
45-
{% endunless %}
34+
<script type="text/javascript">
35+
var _gaq = _gaq || [];
36+
_gaq.push(['_setAccount', 'UA-146052-10']);
37+
_gaq.push(['_trackPageview']);
38+
(function() {
39+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
40+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
41+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
42+
})();
43+
</script>

_includes/old-bs-docs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="bs-old-docs">
22
<div class="container">
33
<strong>
4-
<a href="/2.3.2/">Looking for Bootstrap 2.3.2 docs?</a>
4+
<a href="{{ page.base_url }}2.3.2/">Looking for Bootstrap 2.3.2 docs?</a>
55
</strong>
66
We've moved it to a new home while we push forward with Bootstrap 3. <a href="http://blog.getbootstrap.com/">Read the blog</a> for details.
77
</div>

_layouts/customize.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
<div class="container">
1616
<h1>{{ page.title }}</h1>
1717
<p>{{ page.lead }}</p>
18-
{% unless site.port != "9001" %}
19-
{% include ads.html %}
20-
{% endunless %}
18+
{% include ads.html %}
2119
</div>
2220
</div>
2321

_layouts/default.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
<div class="container">
1616
<h1>{{ page.title }}</h1>
1717
<p>{{ page.lead }}</p>
18-
{% unless site.port != "9001" %}
19-
{% include ads.html %}
20-
{% endunless %}
18+
{% include ads.html %}
2119
</div>
2220
</div>
2321

customize.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<button class="btn btn-default toggle" type="button">Toggle all</button>
1515
<h1 id="less">LESS files</h1>
1616
</div>
17-
<p class="lead">Choose which LESS files to compile into your custom build of Bootstrap. Not sure which files to use? Read through the <a href="../css/">CSS</a> and <a href="/components/">Components</a> pages in the docs</p>
17+
<p class="lead">Choose which LESS files to compile into your custom build of Bootstrap. Not sure which files to use? Read through the <a href="../css/">CSS</a> and <a href="../components/">Components</a> pages in the docs</p>
1818

1919
<h3>Basics</h3>
2020
<div class="row">

getting-started.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ <h4>Alternate customization methods</h4>
272272
</div>
273273

274274
<h3>Removing potential bloat</h3>
275-
<p>Not all sites and applications need to make use of everything Bootstrap has to offer, especially in production environments where bandwidth literally becomes a financial issue. We encourage folks to remove whatever is unused with our <a href="/customize/">Customizer</a>.</p>
275+
<p>Not all sites and applications need to make use of everything Bootstrap has to offer, especially in production environments where bandwidth literally becomes a financial issue. We encourage folks to remove whatever is unused with our <a href="../customize/">Customizer</a>.</p>
276276
<p>Using the Customizer, simply uncheck any component, feature, or asset you don't need. Hit download and swap out the default Bootstrap files with these newly customized ones. You'll get vanilla Bootstrap, but without the features *you* deem unnecessary. All custom builds include compiled and minified versions, so use whichever works for you.</p>
277277

278278
</div>

0 commit comments

Comments
 (0)