Add a table of contents for each topic page that has any h1 or h2 links