@docusaurus/plugin-content-blog 0.0.0-4743 → 0.0.0-4749

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -116,7 +116,7 @@ async function pluginContentBlog(context, options) {
116
116
  const sidebarBlogPosts = options.blogSidebarCount === 'ALL'
117
117
  ? blogPosts
118
118
  : blogPosts.slice(0, options.blogSidebarCount);
119
- if (archiveBasePath) {
119
+ if (archiveBasePath && blogPosts.length) {
120
120
  const archiveUrl = (0, utils_1.normalizeUrl)([
121
121
  baseUrl,
122
122
  routeBasePath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-blog",
3
- "version": "0.0.0-4743",
3
+ "version": "0.0.0-4749",
4
4
  "description": "Blog plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/plugin-content-blog.d.ts",
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@docusaurus/core": "0.0.0-4743",
22
- "@docusaurus/logger": "0.0.0-4743",
23
- "@docusaurus/mdx-loader": "0.0.0-4743",
24
- "@docusaurus/utils": "0.0.0-4743",
25
- "@docusaurus/utils-common": "0.0.0-4743",
26
- "@docusaurus/utils-validation": "0.0.0-4743",
21
+ "@docusaurus/core": "0.0.0-4749",
22
+ "@docusaurus/logger": "0.0.0-4749",
23
+ "@docusaurus/mdx-loader": "0.0.0-4749",
24
+ "@docusaurus/utils": "0.0.0-4749",
25
+ "@docusaurus/utils-common": "0.0.0-4749",
26
+ "@docusaurus/utils-validation": "0.0.0-4749",
27
27
  "cheerio": "^1.0.0-rc.10",
28
28
  "feed": "^4.2.2",
29
29
  "fs-extra": "^10.0.1",
@@ -35,7 +35,7 @@
35
35
  "webpack": "^5.70.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@docusaurus/types": "0.0.0-4743",
38
+ "@docusaurus/types": "0.0.0-4749",
39
39
  "escape-string-regexp": "^4.0.0"
40
40
  },
41
41
  "peerDependencies": {
@@ -45,5 +45,5 @@
45
45
  "engines": {
46
46
  "node": ">=14"
47
47
  },
48
- "gitHead": "ab2b7ab1b254457b2b700d18245973fbd02c7f82"
48
+ "gitHead": "96260c807b7b650d6e1673e28920684f74920f46"
49
49
  }
package/src/index.ts CHANGED
@@ -219,7 +219,7 @@ export default async function pluginContentBlog(
219
219
  ? blogPosts
220
220
  : blogPosts.slice(0, options.blogSidebarCount);
221
221
 
222
- if (archiveBasePath) {
222
+ if (archiveBasePath && blogPosts.length) {
223
223
  const archiveUrl = normalizeUrl([
224
224
  baseUrl,
225
225
  routeBasePath,