fix sidenav links
This commit is contained in:
parent
491503e4ae
commit
0972c64e7a
|
@ -1,5 +1,5 @@
|
||||||
<header class="navbar navbar-static-top bs-docs-sidebar" id="top" role="banner">
|
<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
|
Bootstrap
|
||||||
</a>
|
</a>
|
||||||
{% for group in site.data.nav %}
|
{% for group in site.data.nav %}
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="bs-docs-toc-item {{ active }}">
|
<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 }}
|
{{ group.title }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<li class="{{ active }}">
|
<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 }}
|
{{ doc.title }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
{% for section in doc.sections %}
|
{% for section in doc.sections %}
|
||||||
<li>
|
<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 }}
|
{{ section.title }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue