aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-26 19:05:43 -0700
committerMark Otto <[email protected]>2013-07-26 19:05:43 -0700
commit305455a9b323f0dd43477055dae28b0d063c0880 (patch)
tree1a541c06c830dc5b3851a9854ba8495a579991a5
parenta285a3db3f46a8134ef53b85369b6797e6473acb (diff)
downloadbootstrap-305455a9b323f0dd43477055dae28b0d063c0880.tar.xz
bootstrap-305455a9b323f0dd43477055dae28b0d063c0880.zip
Use some vars for key urls for easier updating
-rw-r--r--_config.yml17
-rw-r--r--_layouts/customize.html4
-rw-r--r--_layouts/default.html8
-rw-r--r--_layouts/home.html2
-rw-r--r--getting-started.html10
-rw-r--r--index.html2
6 files changed, 23 insertions, 20 deletions
diff --git a/_config.yml b/_config.yml
index 2b0af2054..c0dc545d2 100644
--- a/_config.yml
+++ b/_config.yml
@@ -1,11 +1,16 @@
# Dependencies
-markdown: rdiscount
-pygments: true
+markdown: rdiscount
+pygments: true
# Permalinks
-permalink: pretty
+permalink: pretty
# Server
-destination: ./_gh_pages
-exclude: [".editorconfig", ".gitignore", ".ruby-version", "bower.json", "composer.json", "CONTRIBUTING.md", "LICENSE", "Makefile", "package.json", "node_modules", "README.md", "less"]
-port: 9001
+destination: ./_gh_pages
+exclude: [".editorconfig", ".gitignore", ".ruby-version", "bower.json", "composer.json", "CONTRIBUTING.md", "LICENSE", "Makefile", "package.json", "node_modules", "README.md", "less"]
+port: 9001
+
+# Custom vars
+repo: https://github.com/twbs/bootstrap
+download: https://github.com/twbs/bootstrap/archive/v3.0.0-rc1.zip
+download_dist: https://github.com/twbs/bootstrap/archive/v3.0.0-rc1-dist.zip
diff --git a/_layouts/customize.html b/_layouts/customize.html
index a2affb0de..26ff67362 100644
--- a/_layouts/customize.html
+++ b/_layouts/customize.html
@@ -40,9 +40,9 @@
<ul class="footer-links">
<li><a href="http://blog.getbootstrap.com">Blog</a></li>
<li class="muted">&middot;</li>
- <li><a href="https://github.com/twbs/bootstrap/issues?state=open">Issues</a></li>
+ <li><a href="{{ site.repo }}/issues?state=open">Issues</a></li>
<li class="muted">&middot;</li>
- <li><a href="https://github.com/twbs/bootstrap/releases">Releases</a></li>
+ <li><a href="{{ site.repo }}/releases">Releases</a></li>
</ul>
</footer>
diff --git a/_layouts/default.html b/_layouts/default.html
index 6b776f225..1d3d5b988 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -51,9 +51,7 @@
</div>
<!-- Quick back to top -->
- <a href="#" class="bs-top">
- Back to top
- </a>
+ <a href="#" class="bs-top">Back to top</a>
<!-- Footer
================================================== -->
@@ -65,9 +63,9 @@
<ul class="footer-links">
<li><a href="http://blog.getbootstrap.com">Blog</a></li>
<li class="muted">&middot;</li>
- <li><a href="https://github.com/twbs/bootstrap/issues?state=open">Issues</a></li>
+ <li><a href="{{ site.repo }}/issues?state=open">Issues</a></li>
<li class="muted">&middot;</li>
- <li><a href="https://github.com/twbs/bootstrap/releases">Releases</a></li>
+ <li><a href="{{ site.repo }}/releases">Releases</a></li>
</ul>
</footer>
diff --git a/_layouts/home.html b/_layouts/home.html
index 13da28f0b..e8084091f 100644
--- a/_layouts/home.html
+++ b/_layouts/home.html
@@ -21,7 +21,7 @@
<ul class="bs-masthead-links">
<li>
- <a href="http://github.com/twbs/bootstrap" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'GitHub project']);">GitHub project</a>
+ <a href="{{ site.repo }}" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'GitHub project']);">GitHub project</a>
</li>
<li>
<a href="http://examples.getbootstrap.com" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'Examples']);">Examples</a>
diff --git a/getting-started.html b/getting-started.html
index 506a472b4..51909b66e 100644
--- a/getting-started.html
+++ b/getting-started.html
@@ -16,18 +16,18 @@ lead: "An overview of Bootstrap, how to download and use, basic templates and ex
<h3>Download compiled CSS and JS</h3>
<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>
- <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>
+ <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>
<hr>
<h3 id="download-options">More download options</h3>
<div class="bs-docs-dl-options">
<h4>
- <a href="https://github.com/twbs/bootstrap/zipball/master" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download latest source code</a>
+ <a href="{{ site.download }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download latest source code</a>
</h4>
<p>Get the original files for all CSS and JavaScript by downloading the latest version directly from GitHub.</p>
<h4>
- <a href="https://github.com/twbs/bootstrap/" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'GitHub project']);">Clone or fork via GitHub</a>
+ <a href="{{ site.repo }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'GitHub project']);">Clone or fork via GitHub</a>
</h4>
<p>Clone the entire project or fork your own version of Bootstrap to make it your own by visiting us on GitHub.</p>
<h4>
@@ -43,10 +43,10 @@ lead: "An overview of Bootstrap, how to download and use, basic templates and ex
<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>
{% highlight html linenos %}
<!-- Latest compiled and minified CSS -->
-<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
+<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css">
<!-- Latest compiled and minified JavaScript -->
-<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
+<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/js/bootstrap.min.js"></script>
{% endhighlight %}
<div class="bs-callout bs-callout-warning" id="callout-less-compilation">
diff --git a/index.html b/index.html
index 10ea4f6d9..10ec6d084 100644
--- a/index.html
+++ b/index.html
@@ -8,7 +8,7 @@ title: Bootstrap
<h1>Bootstrap 3</h1>
<p class="lead">Sleek, intuitive, and powerful mobile-first front-end framework for faster and easier web development.</p>
<p>
- <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>
+ <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>
</p>
</div>
</div>