diff options
author | Hanzei <hanzei@mailbox.org> | 2018-07-27 00:11:44 +0300 |
---|---|---|
committer | Hanzei <hanzei@mailbox.org> | 2018-07-27 00:11:44 +0300 |
commit | e638cc1db659dd937b991049975a5b2d9eec7449 (patch) | |
tree | b496c37c7c3f2d78ad3aa29564aabaf3aa5f6e87 | |
parent | 54169c2cc8791b6e76e490931c7e9e6bd738b659 (diff) |
Fix link in nav
-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 66c312d..60680cc 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 | absLangURL }}{{ end }}">{{ .Title }}</a> + <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "/#%s" (.File.TranslationBaseName | urlize) | absLangURL }}{{ 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 | absLangURL }}{{ end }}">{{ .Title }}</a> + <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "/#%s" (.File.TranslationBaseName | urlize) | absLangURL }}{{ end }}">{{ .Title }}</a> {{ end }} {{ end }} |