From e5cf41079c0eeedc7e6cc5f60eafd88462c08ddf Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 8 Mar 2022 11:14:18 +0800 Subject: [PATCH 1/2] Update index.js --- themes/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/index.js b/themes/index.js index 5acc65dd..e9b63872 100644 --- a/themes/index.js +++ b/themes/index.js @@ -3,7 +3,7 @@ */ // export * from './Empty' // 空主题 -// export * from './NEXT' +export * from './NEXT' // export * from './Fukasawa' -export * from './Hexo' +// export * from './Hexo' // export * from './Medium' From 270d05683041884275035cdad4a7ed97294a3599 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 8 Mar 2022 12:09:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/formatDate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/formatDate.js b/lib/formatDate.js index 8be365fc..5674b170 100644 --- a/lib/formatDate.js +++ b/lib/formatDate.js @@ -5,6 +5,7 @@ * @returns {string} */ export default function formatDate (date, local) { + if (!date) return '' const d = new Date(date) const options = { year: 'numeric', month: 'short', day: 'numeric' } const res = d.toLocaleDateString(local, options)