From d2325b65c88a27568accf606442c9d1d2204c05b Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 17 Apr 2020 19:47:19 +0300 Subject: [PATCH] Improve docs-sidebar.html (#30567) Reduce the output HTML --- site/layouts/partials/docs-sidebar.html | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/site/layouts/partials/docs-sidebar.html b/site/layouts/partials/docs-sidebar.html index 9af562340d..23e9bbad36 100644 --- a/site/layouts/partials/docs-sidebar.html +++ b/site/layouts/partials/docs-sidebar.html @@ -13,22 +13,20 @@ {{- end -}} {{- $group_slug := $group.title | urlize -}} - {{- $active_group := eq $.Page.Params.group $group_slug }} + {{- $is_active_group := eq $.Page.Params.group $group_slug }} -
  • - +
  • + {{ $group.title }} {{- if $group.pages }} -