]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix sidenav links
authorMark Otto <markdotto@gmail.com>
Tue, 23 Dec 2014 21:23:03 +0000 (13:23 -0800)
committerMark Otto <markdotto@gmail.com>
Tue, 23 Dec 2014 21:23:03 +0000 (13:23 -0800)
docs/_includes/docs-nav.html

index 0ab8cd33bff269f250b53d67c6a043c9fe80187e..996bfd9d1f20476f5f6699f10b4929f36dffebc9 100644 (file)
@@ -1,5 +1,5 @@
 <header class="navbar navbar-static-top bs-docs-sidebar" id="top" role="banner">
-  <a href="{{ site.baseurl }}" class="navbar-brand">
+  <a href="{{ site.baseurl }}/" class="navbar-brand">
     Bootstrap
   </a>
   {% for group in site.data.nav %}
@@ -12,7 +12,7 @@
     {% endif %}
 
     <div class="bs-docs-toc-item {{ active }}">
-      <a class="bs-docs-toc-link" href="{{ site.baseurl }}{{ group.title | downcase | replace: ' ', '-' }}/{{ link.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-'  }}">
+      <a class="bs-docs-toc-link" href="{{ site.baseurl }}/{{ group.title | downcase | replace: ' ', '-' }}/{{ link.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-'  }}">
         {{ group.title }}
       </a>
 
@@ -26,7 +26,7 @@
           {% endif %}
 
           <li class="{{ active }}">
-            <a href="{{ site.baseurl }}{{ group.title | downcase | replace: ' ', '-' }}/{{ doc.title | downcase | replace: ' ', '-' }}">
+            <a href="{{ site.baseurl }}/{{ group.title | downcase | replace: ' ', '-' }}/{{ doc.title | downcase | replace: ' ', '-' }}">
               {{ doc.title }}
             </a>
 
@@ -34,7 +34,7 @@
               <ul class="nav">
                 {% for section in doc.sections %}
                   <li>
-                    <a href="{{ site.baseurl }}{{ group.title | downcase | replace: ' ', '-' }}/{{ doc.title | downcase | replace: ' ', '-' }}/#{{ section.title | downcase | replace: ' ', '-' }}">
+                    <a href="{{ site.baseurl }}/{{ group.title | downcase | replace: ' ', '-' }}/{{ doc.title | downcase | replace: ' ', '-' }}/#{{ section.title | downcase | replace: ' ', '-' }}">
                       {{ section.title }}
                     </a>
                   </li>