Complete the code to define a content collection named 'blog'.
export const collections = {
blog: [1]
};In Astro, to define a content collection, you use content(). This tells Astro that 'blog' is a content collection.
Complete the code to define a data collection named 'authors'.
export const collections = {
authors: [1]
};To define a data collection in Astro, you use data(). This marks 'authors' as a data collection.
Fix the error in the code to correctly define a content collection named 'posts'.
export const collections = {
posts: [1]
};The correct function to define a content collection is content(). Using data() here would be wrong.
Fill both blanks to define collections: 'articles' as content and 'team' as data.
export const collections = {
articles: [1],
team: [2]
};Use content() for 'articles' and data() for 'team' to correctly define the collections.
Fill all three blanks to define collections: 'news' as content, 'profiles' as data, and 'events' as content.
export const collections = {
news: [1],
profiles: [2],
events: [3]
};Define 'news' and 'events' as content collections using content(), and 'profiles' as a data collection using data().
