Skip to content

Commit 305455a

Browse files
committed
Use some vars for key urls for easier updating
1 parent a285a3d commit 305455a

File tree

6 files changed

+23
-20
lines changed

6 files changed

+23
-20
lines changed

_config.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
# Dependencies
2-
markdown: rdiscount
3-
pygments: true
2+
markdown: rdiscount
3+
pygments: true
44

55
# Permalinks
6-
permalink: pretty
6+
permalink: pretty
77

88
# Server
9-
destination: ./_gh_pages
10-
exclude: [".editorconfig", ".gitignore", ".ruby-version", "bower.json", "composer.json", "CONTRIBUTING.md", "LICENSE", "Makefile", "package.json", "node_modules", "README.md", "less"]
11-
port: 9001
9+
destination: ./_gh_pages
10+
exclude: [".editorconfig", ".gitignore", ".ruby-version", "bower.json", "composer.json", "CONTRIBUTING.md", "LICENSE", "Makefile", "package.json", "node_modules", "README.md", "less"]
11+
port: 9001
12+
13+
# Custom vars
14+
repo: https://github.com/twbs/bootstrap
15+
download: https://github.com/twbs/bootstrap/archive/v3.0.0-rc1.zip
16+
download_dist: https://github.com/twbs/bootstrap/archive/v3.0.0-rc1-dist.zip

_layouts/customize.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ <h1>{{ page.title }}</h1>
4040
<ul class="footer-links">
4141
<li><a href="http://blog.getbootstrap.com">Blog</a></li>
4242
<li class="muted">&middot;</li>
43-
<li><a href="https://github.com/twbs/bootstrap/issues?state=open">Issues</a></li>
43+
<li><a href="{{ site.repo }}/issues?state=open">Issues</a></li>
4444
<li class="muted">&middot;</li>
45-
<li><a href="https://github.com/twbs/bootstrap/releases">Releases</a></li>
45+
<li><a href="{{ site.repo }}/releases">Releases</a></li>
4646
</ul>
4747
</footer>
4848

_layouts/default.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ <h1>{{ page.title }}</h1>
5151
</div>
5252

5353
<!-- Quick back to top -->
54-
<a href="#" class="bs-top">
55-
Back to top
56-
</a>
54+
<a href="#" class="bs-top">Back to top</a>
5755

5856
<!-- Footer
5957
================================================== -->
@@ -65,9 +63,9 @@ <h1>{{ page.title }}</h1>
6563
<ul class="footer-links">
6664
<li><a href="http://blog.getbootstrap.com">Blog</a></li>
6765
<li class="muted">&middot;</li>
68-
<li><a href="https://github.com/twbs/bootstrap/issues?state=open">Issues</a></li>
66+
<li><a href="{{ site.repo }}/issues?state=open">Issues</a></li>
6967
<li class="muted">&middot;</li>
70-
<li><a href="https://github.com/twbs/bootstrap/releases">Releases</a></li>
68+
<li><a href="{{ site.repo }}/releases">Releases</a></li>
7169
</ul>
7270
</footer>
7371

_layouts/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<ul class="bs-masthead-links">
2323
<li>
24-
<a href="http://github.com/twbs/bootstrap" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'GitHub project']);">GitHub project</a>
24+
<a href="{{ site.repo }}" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'GitHub project']);">GitHub project</a>
2525
</li>
2626
<li>
2727
<a href="http://examples.getbootstrap.com" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'Examples']);">Examples</a>

getting-started.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ <h1>Download Bootstrap</h1>
1616

1717
<h3>Download compiled CSS and JS</h3>
1818
<p class="lead">The fastest way to get started is to get the compiled and minified versions of our CSS and JavaScript. No documentation or original source files are included.</p>
19-
<p><a class="btn btn-large btn-primary" href="assets/bootstrap.zip" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);">Download Bootstrap</a></p>
19+
<p><a class="btn btn-large btn-primary" href="{{ site.download_dist }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);">Download Bootstrap</a></p>
2020

2121
<hr>
2222

2323
<h3 id="download-options">More download options</h3>
2424
<div class="bs-docs-dl-options">
2525
<h4>
26-
<a href="https://github.com/twbs/bootstrap/zipball/master" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download latest source code</a>
26+
<a href="{{ site.download }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download latest source code</a>
2727
</h4>
2828
<p>Get the original files for all CSS and JavaScript by downloading the latest version directly from GitHub.</p>
2929
<h4>
30-
<a href="https://github.com/twbs/bootstrap/" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'GitHub project']);">Clone or fork via GitHub</a>
30+
<a href="{{ site.repo }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'GitHub project']);">Clone or fork via GitHub</a>
3131
</h4>
3232
<p>Clone the entire project or fork your own version of Bootstrap to make it your own by visiting us on GitHub.</p>
3333
<h4>
@@ -43,10 +43,10 @@ <h3 id="download-cdn">Use the Bootstrap CDN</h3>
4343
<p>The folks over at <a href="https://www.netdna.com/">NetDNA</a> have graciously provided CDN support for Bootstrap's CSS and JavaScript. To use, swap your local instances for the <a href="http://www.bootstrapcdn.com/">Bootstrap CDN</a> links listed below.</p>
4444
{% highlight html linenos %}
4545
<!-- Latest compiled and minified CSS -->
46-
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
46+
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css">
4747

4848
<!-- Latest compiled and minified JavaScript -->
49-
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
49+
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/js/bootstrap.min.js"></script>
5050
{% endhighlight %}
5151

5252
<div class="bs-callout bs-callout-warning" id="callout-less-compilation">

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<h1>Bootstrap 3</h1>
99
<p class="lead">Sleek, intuitive, and powerful mobile-first front-end framework for faster and easier web development.</p>
1010
<p>
11-
<a href="assets/bootstrap.zip" class="btn btn-bs btn-large" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Download', 'Download 3.0.0 RC1']);">Download Bootstrap</a>
11+
<a href="{{ site.download_dist }}" class="btn btn-bs btn-large" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Download', 'Download 3.0.0 RC1']);">Download Bootstrap</a>
1212
</p>
1313
</div>
1414
</div>

0 commit comments

Comments
 (0)