Create an Article Table of Contents component using AstroJS

Опубликовано: 31 Июль 2026
на канале: That Developer Dad
33
1

This morning, we talked through the last steps of making our Blog Post template, and got some dynamic rendering happening, if we identify a header image for our post in its front matter.

Then, we started learning about some of the API capabilities offered by AstroJS, and created a component that will automatically build a Table of Contents from the files in our posts folder. Sweeeeet

-- We are building: https://www.thatdeveloperdad.com
-- We are using: https://astro.build
-- Watch live at   / thatdeveloperdad