From 5707d9da356d0906eaa5da8ece350dc5fcd094df Mon Sep 17 00:00:00 2001 From: kendo5731 Date: Sun, 7 Feb 2016 13:35:12 +0100 Subject: [PATCH] feat(): show categories and tags blocs only if there are some --- layouts/partials/menu.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 1ee361c..a7481be 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -9,21 +9,25 @@ + {{ with .Site.Taxonomies.tags }}

{{ ( index $.Site.Data.translations $.Site.Params.locale ).tags }}

+ {{ end }} + {{ with .Site.Taxonomies.categories }}

{{ ( index $.Site.Data.translations $.Site.Params.locale ).categories }}

+ {{ end }}