From 38cefcc06de70d3079f90bc51ed5cc6742d81f16 Mon Sep 17 00:00:00 2001 From: Owen Young <62473795+theowenyoung@users.noreply.github.com> Date: Wed, 16 Jun 2021 14:10:36 +0800 Subject: [PATCH] fix: limit param could be 0 --- packages/gatsby-theme-blog-core/utils/default-options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-theme-blog-core/utils/default-options.js b/packages/gatsby-theme-blog-core/utils/default-options.js index 45ebd595..c285b05d 100644 --- a/packages/gatsby-theme-blog-core/utils/default-options.js +++ b/packages/gatsby-theme-blog-core/utils/default-options.js @@ -5,7 +5,7 @@ module.exports = (themeOptions) => { const excerptLength = themeOptions.excerptLength || 140 const imageMaxWidth = themeOptions.imageMaxWidth || 1380 const filter = themeOptions.filter || {} - const limit = themeOptions.limit || 1000 + const limit = themeOptions.limit !== undefined ? themeOptions.limit : 1000 return { basePath, contentPath,