mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +02:00
feat: make tags route path configurable (#5545)
This commit is contained in:
parent
ba402e9e63
commit
29e06d0677
11 changed files with 28 additions and 4 deletions
|
@ -124,6 +124,7 @@ export default function pluginContentBlog(
|
|||
const {
|
||||
postsPerPage: postsPerPageOption,
|
||||
routeBasePath,
|
||||
tagsBasePath,
|
||||
blogDescription,
|
||||
blogTitle,
|
||||
blogSidebarTitle,
|
||||
|
@ -201,7 +202,7 @@ export default function pluginContentBlog(
|
|||
|
||||
const blogTags: BlogTags = getBlogTags(blogPosts);
|
||||
|
||||
const tagsPath = normalizeUrl([baseBlogUrl, 'tags']);
|
||||
const tagsPath = normalizeUrl([baseBlogUrl, tagsBasePath]);
|
||||
|
||||
const blogTagsListPath =
|
||||
Object.keys(blogTags).length > 0 ? tagsPath : null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue