diff options
Diffstat (limited to 'vendor/twbs/bootstrap/site/layouts/partials/docs-sidebar.html')
-rw-r--r-- | vendor/twbs/bootstrap/site/layouts/partials/docs-sidebar.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/twbs/bootstrap/site/layouts/partials/docs-sidebar.html b/vendor/twbs/bootstrap/site/layouts/partials/docs-sidebar.html index e7b557687..51e7bac4f 100644 --- a/vendor/twbs/bootstrap/site/layouts/partials/docs-sidebar.html +++ b/vendor/twbs/bootstrap/site/layouts/partials/docs-sidebar.html @@ -28,7 +28,7 @@ {{- range $doc := $group.pages -}} {{- $doc_slug := $doc.title | urlize -}} {{- $is_active := and $is_active_group (eq $page_slug $doc_slug) -}} - {{- $href := printf "/docs/%s/%s/%s/" $.Site.Params.docs_version $group_slug $doc_slug }} + {{- $href := urls.JoinPath "/docs" $.Site.Params.docs_version $group_slug $doc_slug "/" }} <li><a href="{{ $href }}" class="bd-links-link d-inline-block rounded{{ if $is_active }} active{{ end }}"{{ if $is_active }} aria-current="page"{{ end }}>{{ $doc.title }}</a></li> {{- end }} </ul> @@ -36,7 +36,8 @@ {{- else }} <li class="bd-links-span-all mt-1 mb-3 mx-4 border-top"></li> <li class="bd-links-span-all"> - <a href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/" class="bd-links-link d-inline-block rounded small {{ if $is_active_group }} active{{ end }}"{{ if $is_active_group }} aria-current="page"{{ end }}> + {{- $href := urls.JoinPath "/docs" $.Site.Params.docs_version $group_slug "/" }} + <a href="{{ $href }}" class="bd-links-link d-inline-block rounded small{{ if $is_active_group }} active{{ end }}"{{ if $is_active_group }} aria-current="page"{{ end }}> {{ $group.title }} </a> </li> |