begin `content` config
parent
2d4e1fb375
commit
c08fdbf7fd
@ -0,0 +1,11 @@
|
|||||||
|
// 1. Import utilities from `astro:content`
|
||||||
|
import { defineCollection } from "astro:content";
|
||||||
|
// 2. Define your collection(s)
|
||||||
|
const blogCollection = defineCollection({
|
||||||
|
/* ... */
|
||||||
|
});
|
||||||
|
// 3. Export a single `collections` object to register your collection(s)
|
||||||
|
// This key should match your collection directory name in "src/content"
|
||||||
|
export const collections = {
|
||||||
|
blog: blogCollection,
|
||||||
|
};
|
Loading…
Reference in New Issue