diff --git a/layouts/partials/sidebar-tree.html b/layouts/partials/sidebar-tree.html index e32a7166df..64fd69da4f 100644 --- a/layouts/partials/sidebar-tree.html +++ b/layouts/partials/sidebar-tree.html @@ -53,9 +53,9 @@
  • {{ if (and $p.Site.Params.ui.sidebar_menu_foldable (ge $ulNr 1)) -}} - + {{ else -}} - {{ with $s.Params.Icon}}{{ end }}{{ $s.LinkTitle }} + {{ with $s.Params.Icon}}{{ end }}{{ $s.LinkTitle }} {{- end }} {{- if $withChild }} {{- $ulNr := add $ulNr 1 }} @@ -68,4 +68,9 @@ {{- end }}
  • -{{- end }} \ No newline at end of file +{{- end }} + + \ No newline at end of file diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 8d3fc5ae7b..43a7c714c8 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -9,6 +9,7 @@ $("#td-section-nav a").removeClass("active"); $("#td-section-nav #{{ $mid }}").addClass("active"); $("#td-section-nav #{{ $mid }}-li span").addClass("td-sidebar-nav-active-item"); + $("#td-section-nav #{{ $mid }}-li span").attr("id", "td-sidebar-nav-active-item"); $("#td-section-nav #{{ $mid }}").parents("li").addClass("active-path"); $("#td-section-nav li.active-path").addClass("show"); $("#td-section-nav li.active-path").children("input").prop('checked', true);