DEV Community

Discussion on: Render a JSON page in Astro

Collapse
waylonwalker profile image
Waylon Walker

I love rendering out a bunch of content with a map. Is it really this easy in astro? The last SSG I used was gatsby, and graphql always felt like it made it harder for me.

const allPosts = Astro.fetchContent('./posts/*.md');
Enter fullscreen mode Exit fullscreen mode

This looks so easy

Collapse
dailydevtips1 profile image
Chris Bongers Author

Yep!

For me that's a really powerful concept from Astro!
However 11ty for instance also has a similar easy approach.