mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-09 04:47:54 +02:00
fix(content-blog): only create archive route if there are blog posts (#6947)
This commit is contained in:
parent
e19a4e23e7
commit
4536c20455
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ export default async function pluginContentBlog(
|
||||||
? blogPosts
|
? blogPosts
|
||||||
: blogPosts.slice(0, options.blogSidebarCount);
|
: blogPosts.slice(0, options.blogSidebarCount);
|
||||||
|
|
||||||
if (archiveBasePath) {
|
if (archiveBasePath && blogPosts.length) {
|
||||||
const archiveUrl = normalizeUrl([
|
const archiveUrl = normalizeUrl([
|
||||||
baseUrl,
|
baseUrl,
|
||||||
routeBasePath,
|
routeBasePath,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue