Authoring posts
To create a new post, create a new directory in the src/content/posts
directory. The name of the directory will be used as the slug
for the post. Inside that directory, create an index.md
file. This is where your frontmatter and content will live.
Refer to the schema in src/content/config.ts
for the available frontmatter options.
Frontmatter
The frontmatter for a post is defined in the index.md
file. The frontmatter is written in YAML format and is used to provide metadata about the post.
Example Frontmatter
Open Graph Images
Make sure to co-locate the image you want to use for your Open Graph image with the post. This will ensure that the image will be used for social media previews using the Open Graph protocol.
Images should be 1200px × 630px. For more information, see this blog post.
Publication date
The publication date is used to sort posts by date. It is also used to determine the most recent post on the home page.