1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 00:59:51 +02:00

docs: use urls.JoinPath in more places (#39778)

This commit is contained in:
XhmikosR
2024-03-22 11:50:03 +02:00
committed by GitHub
parent d1636a7540
commit 11037f8407
2 changed files with 3 additions and 2 deletions

View File

@@ -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>