diff options
author | Hanzei <hanzei@mailbox.org> | 2018-08-22 09:38:18 +0300 |
---|---|---|
committer | Hanzei <hanzei@mailbox.org> | 2018-08-22 09:38:18 +0300 |
commit | 1abc809ca9d308566d3829c0044cbd7282a5f032 (patch) | |
tree | 74a1f05c7652293aac4b85e428d885fa10a93d9e /layouts | |
parent | cec1b43798bb89d9a3138bedd616f2747de4874b (diff) |
Fix url for links to home
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/nav.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 60680cc..e726190 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -43,7 +43,7 @@ {{ with .Site.GetPage "/home" }} {{ range sort (.Resources.ByType "page") "Params.weight" }} {{ if ne .Name "contact.md" }} - <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "/#%s" (.File.TranslationBaseName | urlize) | absLangURL }}{{ end }}">{{ .Title }}</a> + <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "/#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title }}</a> {{ end }} {{ end }} {{ end }} @@ -88,7 +88,7 @@ {{ with .Site.GetPage "/home" }} {{ with .Resources.GetMatch "contact.md" }} - <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "/#%s" (.File.TranslationBaseName | urlize) | absLangURL }}{{ end }}">{{ .Title }}</a> + <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "/#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title }}</a> {{ end }} {{ end }} |