mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
main link does not switch back to default language if in another language (#202)
no need to configure the language path in the different pages
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<nav class="navigation">
|
||||
<section class="container">
|
||||
<a class="navigation-title" href="{{ .Site.BaseURL | absLangURL }}">
|
||||
<a class="navigation-title" href="{{ .Site.BaseURL | relLangURL }}">
|
||||
{{ .Site.Title }}
|
||||
</a>
|
||||
<input type="checkbox" id="menu-toggle" />
|
||||
@@ -9,7 +9,7 @@
|
||||
{{ with .Site.Menus.main}}
|
||||
{{ range sort . }}
|
||||
<li class="navigation-item">
|
||||
<a class="navigation-link" href="{{ .URL | safeURL }}">{{ .Name }}</a>
|
||||
<a class="navigation-link" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user