mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 16:17:25 +02:00
feat(content-blog): allow customizing blog archive component through option (#6603)
* feat(content-blog): allow customizing blog archive component through option * fix
This commit is contained in:
parent
0c4dc00443
commit
3fd99ad8d4
4 changed files with 8 additions and 1 deletions
|
@ -202,6 +202,7 @@ export default async function pluginContentBlog(
|
|||
blogPostComponent,
|
||||
blogTagsListComponent,
|
||||
blogTagsPostsComponent,
|
||||
blogArchiveComponent,
|
||||
routeBasePath,
|
||||
archiveBasePath,
|
||||
} = options;
|
||||
|
@ -235,7 +236,7 @@ export default async function pluginContentBlog(
|
|||
);
|
||||
addRoute({
|
||||
path: archiveUrl,
|
||||
component: '@theme/BlogArchivePage',
|
||||
component: blogArchiveComponent,
|
||||
exact: true,
|
||||
modules: {
|
||||
archive: aliasedSource(archiveProp),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue