diff options
author | Hanzei <hanzei@mailbox.org> | 2018-07-22 08:11:45 +0300 |
---|---|---|
committer | Hanzei <hanzei@mailbox.org> | 2018-07-22 08:11:45 +0300 |
commit | 9b08324593c35da21299ef74cecca7e330efcb20 (patch) | |
tree | 96acfbc5c64e367cf45954b7925a87cbb2ed7746 /layouts | |
parent | b2bfdb95cf25dc6f8eff96b490e0e4db91eb26bb (diff) |
Fix more build problems
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/nav.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index a40fd79..65a775d 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -54,9 +54,9 @@ {{ $totalProjects := (len .Pages) }} {{ $numberOfProjectsToShow := .Site.Params.home.numberOfProjectsToShow | default $totalProjects }} {{ if $isHome }} - <a class="navbar-item" href="#{{ .Title | urlize }}">{{ .Title }}</a> + <a class="navbar-item" href="{{ printf "#%s" (.Title | urlize) }}">{{ .Title }}</a> {{ else if le $totalProjects $numberOfProjectsToShow }} - <a class="navbar-item" href="/#{{ .Title | urlize }}">{{ .Title }}</a> + <a class="navbar-item" href="{{ printf "/#%s" (.Title | urlize) | relLangURL }}">{{ .Title }}</a> {{ else }} <a class="navbar-item" href="{{ .Permalink }}"> {{ if $pageIsInProjects }} @@ -73,7 +73,7 @@ {{ if not (and $pageIsInBlog (eq .Page.Kind "section")) }} {{ with .Site.GetPage "section" "/blog" }} {{ if $isHome }} - <a class="navbar-item" href="#{{ .Title | urlize }}">{{ .Title }}</a> + <a class="navbar-item" href="{{ printf "#%s" (.Title | urlize) }}">{{ .Title }}</a> {{ else }} <a class="navbar-item" href="{{ .Permalink }}"> {{ if $pageIsInBlog }} |