Configuration
The Starlight Blog plugin can be configured inside the astro.config.mjs
configuration file of your project:
Plugin configuration
The Starlight Blog plugin accepts the following configuration options:
title
Type: string
Default: 'Blog'
The title of the blog.
postCount
Type: number
Default: 5
The number of blog posts to display per page in the blog post list.
recentPostCount
Type: number
Default: 10
The number of recent blog posts to display in the blog sidebar.
authors
Type: StarlightBlogAuthorsConfig
A list of global authors for all blog posts or regular authors that can be referenced in individual blog posts. Check the “Authors” guide section for more informations.
Author configuration
Global authors for all blog posts or regular authors that can be referenced in individual blog posts can be defined using the authors
configuration option.
When a blog post frontmatter does not define an author, the global authors from the configuration will be used instead.
Check the “Authors” guide for more informations.
An author can be configured using the following options:
name
(required)
Type: string
The name of the author.
title
Type: string
A title to display below the author’s name.
url
Type: string
A URL to link the author’s name to.
picture
Type: string
A URL or path to an image in the public/
directory to display as the author’s picture.