#Programmatically Generate Content Collection
3 messages · Page 1 of 1 (latest)
Hi @umbral crane. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Hmm, I don't know enough to give you a confident answer yet. The information extracts provided do not contain specific details on how to generate a content collection from multiple RSS sources using Astro's content collections feature.
However, Astro does provide a way to create and manage content collections, which are essentially groups of similar Markdown or MDX files. You can define a collection using the defineCollection() function and then use the getCollection() function to retrieve the list of your items. You can also use the getStaticPaths() function to create multiple pages from a single src/pages/ component during your build.
For displaying a list of posts, you can use Astro's Content Collections API to query and display your posts and collections. You can also use the getCollection() function to retrieve the list of your items and then map over them to display each post title with a link to an individual post page.