mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +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
|
@ -183,7 +183,13 @@ async function processBlogSourceFile(
|
|||
siteDir,
|
||||
i18n,
|
||||
} = context;
|
||||
const {routeBasePath, truncateMarker, showReadingTime, editUrl} = options;
|
||||
const {
|
||||
routeBasePath,
|
||||
tagsBasePath: tagsRouteBasePath,
|
||||
truncateMarker,
|
||||
showReadingTime,
|
||||
editUrl,
|
||||
} = options;
|
||||
|
||||
// Lookup in localized folder in priority
|
||||
const blogDirPath = await getFolderContainingFile(
|
||||
|
@ -267,7 +273,11 @@ async function processBlogSourceFile(
|
|||
return undefined;
|
||||
}
|
||||
|
||||
const tagsBasePath = normalizeUrl([baseUrl, options.routeBasePath, 'tags']); // make this configurable?
|
||||
const tagsBasePath = normalizeUrl([
|
||||
baseUrl,
|
||||
routeBasePath,
|
||||
tagsRouteBasePath,
|
||||
]);
|
||||
const authors = getBlogPostAuthors({authorsMap, frontMatter});
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue