2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-30 15:24:08 +03:00

fix scrollspy nav

This commit is contained in:
Mark Otto
2015-01-19 18:51:21 -08:00
parent 6f61201f87
commit ff1d10affb
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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>