]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use some vars for key urls for easier updating
authorMark Otto <otto@github.com>
Sat, 27 Jul 2013 02:05:43 +0000 (19:05 -0700)
committerMark Otto <otto@github.com>
Sat, 27 Jul 2013 02:05:43 +0000 (19:05 -0700)
_config.yml
_layouts/customize.html
_layouts/default.html
_layouts/home.html
getting-started.html
index.html

index 2b0af205400c7589324b0173d30a0d7ab0006823..c0dc545d290d28469049b56a45374056c2650e8b 100644 (file)
@@ -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
index a2affb0de4a6966a7c48976b39ed9d56439b217d..26ff67362a5868ef3a0f6a7d78a3fdea3f4bf674 100644 (file)
@@ -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>
 
index 6b776f225bbb5e33112591dfe707414cf0a1d826..1d3d5b988110c744b7e9555ad5fdfa0a8bfa7d2d 100644 (file)
@@ -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>
 
index 13da28f0bd2b0726177e3f47b09d867198b57727..e8084091f2ca7590fc8eb4bf2221caaf0f041665 100644 (file)
@@ -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>
index 506a472b489c938a8d741e0a5330da48829f3b50..51909b66e5acf426c07db6c39a59e6ab1a917f7b 100644 (file)
@@ -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">
index 10ea4f6d9356fe442a5f817d9cff7e95879e38b4..10ec6d084654d77f49bbd767841f5c9039f8494f 100644 (file)
@@ -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>