From 1262c0decd431e1720528dcb90f63b2076c87920 Mon Sep 17 00:00:00 2001 From: Hanzei Date: Sun, 10 Jun 2018 18:37:21 +0200 Subject: [PATCH] Dont show link to current page in nav --- layouts/partials/nav-list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/nav-list.html b/layouts/partials/nav-list.html index 0daaed8..1c6869a 100644 --- a/layouts/partials/nav-list.html +++ b/layouts/partials/nav-list.html @@ -12,12 +12,12 @@ About - {{ if .Site.Params.showProjects }} + {{ if and (.Site.Params.showProjects) (ne .Page.Section "projects") }} Projects {{ end }} - {{ if .Site.Params.showBlog }} + {{ if and (.Site.Params.showBlog) (ne .Page.Section "blog") }} Blog