mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-28 05:58:38 +02:00
feat(blog): add blog pageBasePath plugin option (#9838)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
This commit is contained in:
parent
cc7f43580c
commit
70ba9d2d01
8 changed files with 113 additions and 21 deletions
|
@ -45,6 +45,7 @@ export const DEFAULT_OPTIONS: PluginOptions = {
|
|||
routeBasePath: 'blog',
|
||||
tagsBasePath: 'tags',
|
||||
archiveBasePath: 'archive',
|
||||
pageBasePath: 'page',
|
||||
path: 'blog',
|
||||
editLocalizedFiles: false,
|
||||
authorsMapPath: 'authors.yml',
|
||||
|
@ -59,6 +60,7 @@ const PluginOptionSchema = Joi.object<PluginOptions>({
|
|||
.allow(null),
|
||||
routeBasePath: RouteBasePathSchema.default(DEFAULT_OPTIONS.routeBasePath),
|
||||
tagsBasePath: Joi.string().default(DEFAULT_OPTIONS.tagsBasePath),
|
||||
pageBasePath: Joi.string().default(DEFAULT_OPTIONS.pageBasePath),
|
||||
include: Joi.array().items(Joi.string()).default(DEFAULT_OPTIONS.include),
|
||||
exclude: Joi.array().items(Joi.string()).default(DEFAULT_OPTIONS.exclude),
|
||||
postsPerPage: Joi.alternatives()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue