forked from TrueCloudLab/dot-hugo
use absLangUrl instead of relLangUrl for navigation links
This commit is contained in:
parent
c8a06545f1
commit
b5b39b8d0f
1 changed files with 3 additions and 3 deletions
|
@ -30,13 +30,13 @@
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
<a class="dropdown-item" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
|
<a class="dropdown-item" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link text-dark" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
|
<a class="nav-link text-dark" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue