Skip to content

feat: add sticky TOC to post layout #1141

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Misaki-Akeno
Copy link
Contributor

Add table of contents to the post sidebar, as implication of #936.

1

Improves navigation experience for longer articles.

Add table of contents to the post sidebar with:
- Sticky positioning that keeps TOC visible while scrolling
- Consistent link styling with the rest of the site
- Max height with overflow scrolling for longer TOCs

Improves navigation experience for longer articles.
Copy link

vercel bot commented Apr 7, 2025

@Misaki-Akeno is attempting to deploy a commit to the timlrx's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Misaki-Akeno
Copy link
Contributor Author

not sticky but normal TOC😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant