Automatically Populating a Table of Contents in Statamic

A Table of Contents can be a better design pattern than dropdown menus, but maintaining them can be tricky.

As Heydon Pickering highlighted, dropdown menus are a difficult design pattern. One of the best alternatives is a table of contents for pages that have a lot of data.

For the Work Notes redesign, I wanted to use a Table of Contents on several pages: notably the Terms, Privacy Policy and the Freelance Pricing Guide.