I'd like to create a table of contents (TOC) to be visible on my blog post page (say on the side bar).
I've tried to use anchors to do that (I created an anchor and placed it by each headline I wanted to be part of my TOC. I renamed the anchors to match my headlines and created an anchor menu which popped up on the blog post page showing the headlines. So far so good.
Problem is that this anchor menu/TOC remains the same on other posts (which have obviously different headlines). So, my question is: Is there any way to make the TOC specific to each single post (i.e. showing headlines related to the specific post selected)?