Merge pull request #1001 from eltociear/patch-1

chore: update release-of-tailwind-nextjs-starter-blog-v2.0.mdx
This commit is contained in:
Timothy 2024-08-16 20:42:56 +08:00 committed by GitHub
commit 81fd4bef53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,7 @@ Typescript is also a perfect match with our new type-safe markdown processor - C
[Contentlayer](https://www.contentlayer.dev/) is a content SDK that validates and transforms your content into type-safe JSON data that you can easily import into your application. It makes working with local markdown or MDX files a breeze. This replaces `MDX-bundler` and our own markdown processing workflow.
First, a content source is defined, specifiying the name of the document type, the source where it is located along with the frontmatter fields and any additional computed fields that should be generated as part of the process.
First, a content source is defined, specifying the name of the document type, the source where it is located along with the frontmatter fields and any additional computed fields that should be generated as part of the process.
```ts:contentlayer.config.ts
export const Blog = defineDocumentType(() => ({