vjeantet / hugo-theme-docdock

Declination of @matcornic Learn theme to Hugo

Home Page:https://docdock.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Stop sidebar from jumping to top of Table of Contents

bfreeds opened this issue · comments

For longer table of contents, when clicking on a menu item that is below the viewport (requires a scroll to get to), the page reloads and the table of contents starts back up at the top. This means the user has to then scroll back down in the sidebar to find their spot. Ideally the page would maintain the scroll context rather than jump back to top.

Does anyone have thoughts/advice on how this would be implemented?