feat(v2): enable exact for addRoute API (#1374)

This commit is contained in:
Endilie Yacop Sucipto 2019-04-20 22:09:21 +07:00 committed by Yangshun Tay
parent 1d7538ff4a
commit 2a13c7773f
4 changed files with 13 additions and 11 deletions

View file

@ -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,