From ac4e7db17f3999a3b4e8625b47dda1d186b19330 Mon Sep 17 00:00:00 2001
From: Mark Otto <otto@github.com>
Date: Thu, 25 Jul 2013 20:56:44 -0700
Subject: [PATCH] single include for old ads callout

---
 _includes/nav-main.html    | 7 -------
 _includes/old-bs-docs.html | 8 ++++++++
 _layouts/default.html      | 3 +++
 _layouts/home.html         | 3 +++
 index.html                 | 9 ---------
 5 files changed, 14 insertions(+), 16 deletions(-)
 create mode 100644 _includes/old-bs-docs.html

diff --git a/_includes/nav-main.html b/_includes/nav-main.html
index 40244d3a24..fceeb7a869 100644
--- a/_includes/nav-main.html
+++ b/_includes/nav-main.html
@@ -24,13 +24,6 @@
           <a href="/customize">Customize</a>
         </li>
       </ul>
-      {% if page.layout == "default" %}
-      <ul class="nav navbar-nav pull-right">
-        <li>
-          <a href="http://getbootstrap.com/2.3.2/">Looking for Bootstrap 2.3.2?</a>
-        </li>
-      </ul>
-      {% endif %}
     </div>
   </div>
 </div>
diff --git a/_includes/old-bs-docs.html b/_includes/old-bs-docs.html
new file mode 100644
index 0000000000..a33cad70c6
--- /dev/null
+++ b/_includes/old-bs-docs.html
@@ -0,0 +1,8 @@
+<div class="bs-old-docs">
+  <div class="container">
+    <strong>
+      <a href="/2.3.2/">Looking for Bootstrap 2.3.2 docs?</a>
+    </strong>
+    We've moved it to a new home while we push forward with Bootstrap 3. <a href="http://blog.getbootstrap.com/">Read the blog post</a> for details.
+  </div>
+</div>
diff --git a/_layouts/default.html b/_layouts/default.html
index bf84836384..19388fbf04 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -10,6 +10,9 @@
     <!-- Docs master nav -->
     {% include nav-main.html %}
 
+    <!-- Callout for the old docs link -->
+    {% include old-bs-docs.html %}
+
     <!-- Docs page layout -->
     <div class="bs-header">
       <div class="container">
diff --git a/_layouts/home.html b/_layouts/home.html
index 9230184dc7..d027289578 100644
--- a/_layouts/home.html
+++ b/_layouts/home.html
@@ -10,6 +10,9 @@
     <!-- Docs master nav -->
     {% include nav-main.html %}
 
+    <!-- Callout for the old docs link -->
+    {% include old-bs-docs.html %}
+
     <!-- Page content of course! -->
     {{ content }}
 
diff --git a/index.html b/index.html
index 43a6db631e..cb85c09ad6 100644
--- a/index.html
+++ b/index.html
@@ -3,15 +3,6 @@ layout: home
 title: Bootstrap
 ---
 
-<div class="bs-old-docs">
-  <div class="container">
-    <strong>
-      <a href="/2.3.2/">Looking for Bootstrap 2.3.2 docs?</a>
-    </strong>
-    We've moved it to a new home while we push forward with Bootstrap 3. <a href="http://blog.getbootstrap.com/">Read the blog post</a> for details.
-  </div>
-</div>
-
 <div class="container">
   <div class="bs-masthead">
 
-- 
GitLab