diff --git a/website/docs/api/plugins/plugin-content-blog.mdx b/website/docs/api/plugins/plugin-content-blog.mdx index d97b834aa2a51..4b8f040066dd4 100644 --- a/website/docs/api/plugins/plugin-content-blog.mdx +++ b/website/docs/api/plugins/plugin-content-blog.mdx @@ -75,6 +75,7 @@ Accepted fields: | `feedOptions.copyright` | `string` | `undefined` | Copyright message. | | `feedOptions.language` | `string` (See [documentation](http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes) for possible values) | `undefined` | Language metadata of the feed. | | `sortPosts` | 'descending' \| 'ascending' | `'descending'` | Governs the direction of blog post sorting. | +| `flattenFolders` | `boolean` | `false` | When true, nested folders in `path` are discarded when autogenerating slugs. Useful if you want to organise your blog folder by date (or something else) without it impacting/breaking the slugs on the site | | `processBlogPosts` | [ProcessBlogPostsFn](#ProcessBlogPostsFn) | `undefined` | An optional function which can be used to transform blog posts (filter, modify, delete, etc...). | | `showLastUpdateAuthor` | `boolean` | `false` | Whether to display the author who last updated the blog post. | | `showLastUpdateTime` | `boolean` | `false` | Whether to display the last date the blog post was updated. This requires access to git history during the build, so will not work correctly with shallow clones (a common default for CI systems). With GitHub `actions/checkout`, use`fetch-depth: 0`. | @@ -176,6 +177,7 @@ const config = { '**/*.test.{js,jsx,ts,tsx}', '**/__tests__/**', ], + flattenFolders: true, postsPerPage: 10, blogListComponent: '@theme/BlogListPage', blogPostComponent: '@theme/BlogPostPage',