Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Create a Post
Christopher Schicho edited this page Jan 24, 2024
·
2 revisions
In order to create a new post add a *.mdx in data/blog/**. start the content with the meta data header. besides that you can handle it like a markdown.
The following type covers the post meta data.
typeBlog={/** File path relative to `contentDirPath` */_id: string_raw: Local.RawDocumentDatatype: 'Blog'title: stringdate: IsoDateTimeStringtags: string[]lastmod?: IsoDateTimeString|undefineddraft?: boolean|undefinedsummary?: string|undefinedimages?: any|undefinedauthors?: string[]|undefinedlayout?: string|undefinedbibliography?: string|undefinedcanonicalUrl?: string|undefined/** MDX file body */body: MDXreadingTime: jsonslug: stringpath: stringfilePath: stringtoc: stringstructuredData: json}