mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
feat(v2): enable exact for addRoute API (#1374)
This commit is contained in:
parent
1d7538ff4a
commit
2a13c7773f
4 changed files with 13 additions and 11 deletions
|
@ -128,6 +128,7 @@ class DocusaurusPluginContentBlog {
|
|||
addRoute({
|
||||
path: permalink,
|
||||
component: blogPageComponent,
|
||||
exact: true,
|
||||
metadata: metadataItem,
|
||||
modules: {
|
||||
entries: metadataItem.posts.map(post => ({
|
||||
|
@ -147,6 +148,7 @@ class DocusaurusPluginContentBlog {
|
|||
addRoute({
|
||||
path: permalink,
|
||||
component: blogPostComponent,
|
||||
exact: true,
|
||||
metadata: metadataItem,
|
||||
modules: {
|
||||
content: metadataItem.source,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue