-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add back/forward browser feature to TOC links #52
Comments
The smooth scroll script breaks the back button and presents accessibility issues with focus and motion. Fixes #52 Reference: https://css-tricks.com/smooth-scrolling-accessibility/
@rdwatters Going to take up our previous conversation here. Can you send me, or point me to the script you were using before? Sounds like it might fit our needs, or at least worth considering. |
Here's an example of Hugo with smooth scroll in a TOC: Implementation in After Dark theme: And if you want to really step it up for docs add AnchorJS like this: |
@budparr Sorry for the delay. I believe this is part of it, but keep in mind I was using JQ and a lot of spaghetti code, so I worry this is going to do you very little good:
|
When I click on the links in the TOC of an article, it doesn't update the browser URL. That means I can't quickly jump back and forth in the document with the browser's previous and next feature.
(Duplicate of: https://discourse.gohugo.io/t/new-docs-site-released/7470/3?u=jura)
The text was updated successfully, but these errors were encountered: