to customize BlogListPage of multiple blogs #4675
Unanswered
rafaelrdealmeida
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
I think you may use multiple plugin instances: https://docusaurus.io/docs/using-plugins#multi-instance-plugins-and-plugin-ids module.exports = {
plugins: [
[
'@docusaurus/plugin-content-blog',
{
id:'blog1',
path: 'blox-xyz',
routeBasePath: 'blog-xyz',
// Theme components used by the blog pages.
blogListComponent: '@theme/BlogListPage',
blogPostComponent: '@theme/BlogPostPage',
blogTagsListComponent: '@theme/BlogTagsListPage',
blogTagsPostsComponent: '@theme/BlogTagsPostsPage',
},
],
[
'@docusaurus/plugin-content-blog',
{
id:'blog2',
path: 'blox-abc',
routeBasePath: 'blog-abc',
// Theme components used by the blog pages.
blogListComponent: '@theme/BlogListPage',
blogPostComponent: '@theme/BlogPostPage',
blogTagsListComponent: '@theme/BlogTagsListPage',
blogTagsPostsComponent: '@theme/BlogTagsPostsPage',
},
],
],
}; |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We have two blogs on docusaurus (multiple blogs) working, but they share the same BlogListPage. It is possible to customize BlogListPage for each blog
see blog1:
https://labriunesp.org/cadernos/
see blog2:
https://labriunesp.org/noticias/
best
Beta Was this translation helpful? Give feedback.
All reactions