First TIL: Astro Content Collections
Learning how to set up and use Astro Content Collections for structured data.
#astro
#learning
Today I learned how to set up a new content collection in Astro. It’s a powerful way to manage structured content like blogs, documentation, or in this case, a TIL feed.
You just need to define it in src/content/config.ts and then you can use getCollection to fetch the data.