Astro has a super cool function called fetchContent it can be used to fetch content from your pages. A little example, if I want to retrieve all my posts in Astro I simply use the following command: const allPosts = Astro.fetchContent('../pages/posts...

Markdown supported · ⌘↵ to post
No responses yet.