mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-24 01:38:28 +00:00
23 lines
480 B
TypeScript
23 lines
480 B
TypeScript
import * as z from "zod"
|
|
import { createSource } from "."
|
|
|
|
export const Blog = createSource({
|
|
contentPath: "content/blog",
|
|
basePath: "/blog",
|
|
sortBy: "date",
|
|
sortOrder: "desc",
|
|
frontMatter: z.object({
|
|
title: z.string(),
|
|
date: z.string(),
|
|
excerpt: z.string().optional(),
|
|
}),
|
|
})
|
|
|
|
export const Page = createSource({
|
|
contentPath: "content/pages",
|
|
basePath: "/",
|
|
frontMatter: z.object({
|
|
title: z.string(),
|
|
excerpt: z.string().optional(),
|
|
}),
|
|
})
|