From 7b22f1a134eec905c1125324d7ebb1450e17c4af Mon Sep 17 00:00:00 2001 From: Qiming Teng Date: Fri, 25 Jun 2021 16:50:53 +0800 Subject: [PATCH] Fix navbar extra title line --- layouts/partials/sidebar-tree.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/partials/sidebar-tree.html b/layouts/partials/sidebar-tree.html index 37420c55f5..5e909e778f 100644 --- a/layouts/partials/sidebar-tree.html +++ b/layouts/partials/sidebar-tree.html @@ -30,7 +30,7 @@ {{ $sidebarMenuTruncate := cond (isset .Site.Params.ui "sidebar_menu_truncate") .Site.Params.ui.sidebar_menu_truncate 50 }} {{ $currentLang := .Site.Language }} @@ -57,7 +57,9 @@ {{ else }} - {{ with $s.Params.Icon}}{{ end }}{{ $s.LinkTitle }} + {{ if not $treeRoot }} + {{ with $s.Params.Icon}}{{ end }}{{ $s.LinkTitle }} + {{ end }} {{ end }} {{if $withChild }} {{ $ulNr := add $ulNr 1 }}