Getting Started
Ce contenu n’est pas encore disponible dans votre langue.
A Starlight plugin to add a blog to your documentation site.
- Link to the blog in the header
- Post list with pagination
- Global and per-post authors
- Tags
- Cover images
- Custom sidebar with recent/featured posts and tags
- RSS
Check out the demo for a preview of the blog.
Prerequisites
You will need to have a Starlight website set up. If you don’t have one yet, you can follow the “Getting Started” guide in the Starlight docs to create one.
Installation
-
Starlight Blog is a Starlight plugin. Install it using your favorite package manager:
-
Configure the plugin in your Starlight configuration in the
astro.config.mjs
file. -
Starlight Blog uses Astro’s content collections, which are configured in the
src/content/config.ts
file.Update the content config file to add support for customizing individual blog posts using their frontmatter:
-
Create your first blog post by creating a
.md
or.mdx
file in thesrc/content/docs/blog/
directory: -
Start the development server to preview your blog.
The Starlight Blog plugin behavior can be tweaked using various configuration options.