From 32d393c2dfcf426a79be70824dfcfdd415105911 Mon Sep 17 00:00:00 2001 From: Hanzei Date: Fri, 6 Jul 2018 14:10:50 +0200 Subject: [PATCH] Only show languages in nav bar if there is more then one --- layouts/partials/nav.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index ec72077..46850c7 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -81,8 +81,10 @@ {{ .Title }} {{ end }} + {{ if gt (len $.Site.Home.AllTranslations.ByWeight) 1 }} {{ range $.Site.Home.AllTranslations.ByWeight }} - {{ .Language.LanguageName }} + {{ .Language.LanguageName }} + {{ end }} {{ end }} {{ if and .Site.Params.showRSSButton .Site.RSSLink }}