forked from TrueCloudLab/dot-hugo
Use absLangURL function for "Home" links
This should address 404 issues when using only a single language.
This commit is contained in:
parent
94d0294ef6
commit
d436888220
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
|||
{{ $currentNode := . }}
|
||||
{{ $showvisitedlinks := .Site.Params.showVisitedLinks }}
|
||||
<a class="d-block h4 back-btn"
|
||||
href="{{ .Site.BaseURL }}{{ .Language.LanguageName | lower }}">{{ i18n "Back-home"}}</a>
|
||||
href="{{ "/" | absLangURL }}">{{ i18n "Back-home"}}</a>
|
||||
{{range .Site.Home.Sections.ByWeight}}
|
||||
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks}}
|
||||
{{end}}
|
||||
|
@ -106,4 +106,4 @@
|
|||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue