Dont show link to current page in nav

This commit is contained in:
Hanzei 2018-06-10 18:37:21 +02:00
parent d60ab73b1d
commit 1262c0decd
No known key found for this signature in database
GPG key ID: 69A2DEFD98937BA0

View file

@ -12,12 +12,12 @@
<span class="nav-item">
<a href="{{ "/about" | relURL }}">About</a>
</span>
{{ if .Site.Params.showProjects }}
{{ if and (.Site.Params.showProjects) (ne .Page.Section "projects") }}
<span class="nav-item">
<a href="{{ "/projects" | relURL }}">Projects</a>
</span>
{{ end }}
{{ if .Site.Params.showBlog }}
{{ if and (.Site.Params.showBlog) (ne .Page.Section "blog") }}
<span class="nav-item">
<a href="{{ "/blog" | relURL }}">Blog</a>
</span>