From 09fb1433f2d25d149e014a1fc582febf12bb01ed Mon Sep 17 00:00:00 2001 From: Franz Steininger Date: Thu, 18 Feb 2021 01:14:50 +0100 Subject: [PATCH] Scrolling sidebar tree menu to active item Added class to active menu item and JS to scroll the menu Discussed in https://github.com/google/docsy/issues/348 --- layouts/partials/sidebar-tree.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/layouts/partials/sidebar-tree.html b/layouts/partials/sidebar-tree.html index be897cf3e..04a6ba2e0 100644 --- a/layouts/partials/sidebar-tree.html +++ b/layouts/partials/sidebar-tree.html @@ -47,7 +47,7 @@ {{if gt (len $pages) 0}}
  • - {{ $s.LinkTitle }} + {{ $s.LinkTitle }}