Skip to content

Commit

Permalink
collection config
Browse files Browse the repository at this point in the history
  • Loading branch information
lcflight committed Mar 11, 2024
1 parent f6c73f8 commit 555ccdc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/content/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// 1. Import utilities from `astro:content`
import { defineCollection } from "astro:content";
// 2. Define your collection(s)
const postsCollection = defineCollection({
type: "data",
});
// 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 = {
posts: postsCollection,
};

0 comments on commit 555ccdc

Please sign in to comment.