mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 02:37:59 +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.slice(0, options.blogSidebarCount);
|
||||
|
||||
if (archiveBasePath) {
|
||||
if (archiveBasePath && blogPosts.length) {
|
||||
const archiveUrl = normalizeUrl([
|
||||
baseUrl,
|
||||
routeBasePath,
|
||||
|
|
Loading…
Add table
Reference in a new issue