diff options
-rw-r--r-- | exampleSite/static/img/workday.jpg | bin | 0 -> 59645 bytes | |||
-rw-r--r-- | layouts/partials/nav.html | 6 |
2 files changed, 3 insertions, 3 deletions
diff --git a/exampleSite/static/img/workday.jpg b/exampleSite/static/img/workday.jpg Binary files differnew file mode 100644 index 0000000..2e5eea4 --- /dev/null +++ b/exampleSite/static/img/workday.jpg 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 }} |