Display headings from multiple pages

I’m using a theme Minimal Mistakes that automatically generates anchor tags for h1, h2, h3, etc. headings. I’m wondering if it’s possible to create a master table of contents for a collection, such that the title of each page and links to each of the headings is displayed on a single page.