Fix more build problems

This commit is contained in:
Hanzei 2018-07-22 07:11:45 +02:00
parent b2bfdb95cf
commit 9b08324593
No known key found for this signature in database
GPG key ID: 69A2DEFD98937BA0
2 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View file

@ -54,9 +54,9 @@
{{ $totalProjects := (len .Pages) }} {{ $totalProjects := (len .Pages) }}
{{ $numberOfProjectsToShow := .Site.Params.home.numberOfProjectsToShow | default $totalProjects }} {{ $numberOfProjectsToShow := .Site.Params.home.numberOfProjectsToShow | default $totalProjects }}
{{ if $isHome }} {{ 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 }} {{ 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 }} {{ else }}
<a class="navbar-item" href="{{ .Permalink }}"> <a class="navbar-item" href="{{ .Permalink }}">
{{ if $pageIsInProjects }} {{ if $pageIsInProjects }}
@ -73,7 +73,7 @@
{{ if not (and $pageIsInBlog (eq .Page.Kind "section")) }} {{ if not (and $pageIsInBlog (eq .Page.Kind "section")) }}
{{ with .Site.GetPage "section" "/blog" }} {{ with .Site.GetPage "section" "/blog" }}
{{ if $isHome }} {{ if $isHome }}
<a class="navbar-item" href="#{{ .Title | urlize }}">{{ .Title }}</a> <a class="navbar-item" href="{{ printf "#%s" (.Title | urlize) }}">{{ .Title }}</a>
{{ else }} {{ else }}
<a class="navbar-item" href="{{ .Permalink }}"> <a class="navbar-item" href="{{ .Permalink }}">
{{ if $pageIsInBlog }} {{ if $pageIsInBlog }}