Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <otto@github.com>2013-02-13 23:48:22 +0400
committerMark Otto <otto@github.com>2013-02-13 23:48:22 +0400
commitb57c20a0572c56d629438e0a7c7371b3b57c4e8f (patch)
tree6ba6f0d24bab681d75d89bbf5f2251375e97a0e8 /docs/_layouts
parente45f12ad427fddc9d9859fe86423bd49795d4f43 (diff)
Restore gallery page, add active nav class jankitude, auto regenerate docs on file save
Diffstat (limited to 'docs/_layouts')
-rw-r--r--docs/_layouts/default.html22
1 files changed, 14 insertions, 8 deletions
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html
index e92fda24c9..90e8af4405 100644
--- a/docs/_layouts/default.html
+++ b/docs/_layouts/default.html
@@ -7,8 +7,11 @@
<meta name="author" content="">
<title>
- {% if page.title %}{{ page.title }} &middot; {% endif %}
- Bootstrap
+ {% if page.title == "Bootstrap" %}
+ {{ page.title }}
+ {% else if %}
+ {{ page.title }} &middot; Bootstrap
+ {% endif %}
</title>
<!-- Bootstrap core CSS -->
@@ -57,24 +60,27 @@
<a class="brand" href="/">Bootstrap</a>
<div class="nav-collapse collapse">
<ul class="nav">
- <li class="{{index}}">
+ <li {% if page.title == "Bootstrap" %}class="active"{% endif %}>
<a href="/">Home</a>
</li>
- <li class="{{getting-started}}">
+ <li {% if page.title == "Getting started" %}class="active"{% endif %}>
<a href="/getting-started">Get started</a>
</li>
- <li class="{{css}}">
+ <li {% if page.title == "CSS" %}class="active"{% endif %}>
<a href="/css">CSS</a>
</li>
- <li class="{{components}}">
+ <li {% if page.title == "Components" %}class="active"{% endif %}>
<a href="/components">Components</a>
</li>
- <li class="{{javascript}}">
+ <li {% if page.title == "JavaScript plugins" %}class="active"{% endif %}>
<a href="/javascript">JavaScript</a>
</li>
- <li class="{{customize}}">
+ <li {% if page.title == "Customize and download" %}class="active"{% endif %}>
<a href="/customize">Customize</a>
</li>
+ <li {% if page.title == "Gallery" %}class="active"{% endif %}>
+ <a href="/gallery">Gallery</a>
+ </li>
</ul>
</div>
</div>