0
abhinavsarkar.net · 23d · discuss
I have a table of contents (ToC) at the beginning of each of my long blogposts, but till now, the ToC has shown up inline in the posts, and scrolled away as you read it. For better navigation, I recently added a sidebar ToC. It shows up only on large screens; small screens still display the inline ToC. See it in action in one of my posts. I’ve extracted the code as standalone snippets and I present the same in this note.