ToC on a blog post?

Ou I see. Maybe you can find some info here > Dynamic IDs in dynamic list items for inpage anchoring - #11 by bonidom

One more > How to create CMS dynamic table of contents (Step by step tutorial)