diff options
author | Vicky <vicky@vickylai.com> | 2018-08-24 22:44:11 +0300 |
---|---|---|
committer | Vicky <vicky@vickylai.com> | 2018-08-24 22:44:11 +0300 |
commit | 1d207024622b266fdbd73ec1437cced0b857fe05 (patch) | |
tree | e69d2b086ac312b2c28eb422487636de3a4a3e9b /layouts/partials | |
parent | ff59834c3fba0b7be1fd56b7899932c469e5b509 (diff) | |
parent | 1abc809ca9d308566d3829c0044cbd7282a5f032 (diff) |
Merge branch 'next_gen' of https://github.com/Hanzei/hugo-theme-introduction into Hanzei-next_gen
Diffstat (limited to 'layouts/partials')
-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 }} |