From 8f451a9618b0b63b21d4ff65e9c45fe45a9d94f9 Mon Sep 17 00:00:00 2001 From: JiJi Date: Thu, 7 Nov 2024 14:41:39 +0800 Subject: [PATCH] Update build.js --- build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.js b/build.js index f7e1065..8956a59 100644 --- a/build.js +++ b/build.js @@ -158,9 +158,9 @@ const main = async () => { // const recentJson = defaultJson.sort((a, b) => b.ct - a.ct).slice(0, RECENT_SLICE); // 按时间倒序 // const recentPages = splitArray(recentJson, PHOTO_PER_PAGE); // for(let i in recentPages) { - // fs.writeFileSync(`${DIST_PATH}/_recent/page_${i}.json`, JSON.stringify(recentPages[i])); + // fs.writeFileSync(`${DIST_PATH}/recent/page_${i}.json`, JSON.stringify(recentPages[i])); // } - // fs.writeFileSync(`${DIST_PATH}/_recent/meta.json`, JSON.stringify({ count: recentJson.length })); + // fs.writeFileSync(`${DIST_PATH}/recent/meta.json`, JSON.stringify({ count: recentJson.length })); console.log('Generated meta.json and page.json.'); }