Skip to content

Enhancing Starlight with a Blog

Starlight is excellent for documentation, but sometimes you need a blog to go with it. starlight-blog is a community plugin that adds a full-featured blog to your Starlight site.

  • Blog Index: Automatically generates a paginated list of blog posts.
  • Recent Posts: Show recent posts in the sidebar.
  • Tags & Authors: Organize content by tags and credit authors.
  • RSS Feed: Automatic RSS feed generation.

Once installed and configured in astro.config.mjs, you simply create markdown or MDX files in your content directory (e.g., src/content/docs/blog/).

astro.config.mjs
import starlightBlog from 'starlight-blog';
export default defineConfig({
integrations: [
starlight({
plugins: [
starlightBlog({
title: 'My Awesome Blog',
authors: {
me: {
name: 'Me',
title: 'Editor',
},
},
}),
],
}),
],
});