diff --git a/pages/blog/posts/2020-10-10-webpack-5-release.md b/pages/blog/posts/2020-10-10-webpack-5-release.md index 28414b4..6092111 100644 --- a/pages/blog/posts/2020-10-10-webpack-5-release.md +++ b/pages/blog/posts/2020-10-10-webpack-5-release.md @@ -1,9 +1,7 @@ --- layout: post date: 2020-10-10T00:00:00Z -authors: - - sokra - - chenxsan +authors: sokra, chenxsan category: Release image: /assets/blog/cover-1.svg description: Webpack 5.0.0 is officially released! This major version brings huge architectural improvements, persistent caching, deterministic chunk IDs, and Module Federation. diff --git a/scripts/data/blog.mjs b/scripts/data/blog.mjs index 1bc5e11..9c90fd4 100644 --- a/scripts/data/blog.mjs +++ b/scripts/data/blog.mjs @@ -25,7 +25,7 @@ const readPosts = async () => { return { slug, title: titleFromBody(content) ?? slug, - authors: data.authors.split(',').map(s => s.trim()), + authors: data.authors?.split(',').map(s => s.trim()), date: new Date(data.date).toISOString(), category: data.category ?? null, image: data.image ?? null,