diff options
| author | Mark Otto <[email protected]> | 2015-01-19 18:51:21 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2015-01-19 18:51:21 -0800 |
| commit | ff1d10affb94f6c44a06d19c701bdd0523e746c4 (patch) | |
| tree | 01315faf8f6fe61b75d0a9c119284acaad8256d5 /docs | |
| parent | 6f61201f870d39cd7adc23ccfea00895315039f9 (diff) | |
| download | bootstrap-ff1d10affb94f6c44a06d19c701bdd0523e746c4.tar.xz bootstrap-ff1d10affb94f6c44a06d19c701bdd0523e746c4.zip | |
fix scrollspy nav
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/_includes/nav-docs.html | 4 | ||||
| -rw-r--r-- | docs/_layouts/default.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/_includes/nav-docs.html b/docs/_includes/nav-docs.html index 6b3564cd9..0e8431b50 100644 --- a/docs/_includes/nav-docs.html +++ b/docs/_includes/nav-docs.html @@ -28,7 +28,7 @@ {% assign active = nil %} {% if page.url contains slug %} - {% assign active = 'active' %} + {% assign active = 'active bs-docs-sidenav-active' %} {% endif %} <li class="{{ active }}"> @@ -40,7 +40,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="#{{ section.title | downcase | replace: ' ', '-' }}"> {{ section.title }} </a> </li> diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 89de0a212..ecc5e7477 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -4,7 +4,7 @@ <!-- Meta, title, CSS, favicons, etc. --> {% include header.html %} </head> - <body class="bs-docs" data-spy="scroll" data-target=".bs-docs-sidenav"> + <body class="bs-docs" data-spy="scroll" data-target=".bs-docs-sidenav-active"> <a id="skippy" class="sr-only sr-only-focusable" href="#content"> <div class="container"> <span class="skiplink-text">Skip to main content</span> |
