Skip to content

Commit

Permalink
Update build.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdjiji committed Nov 7, 2024
1 parent dcd499d commit 8f451a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand Down

0 comments on commit 8f451a9

Please sign in to comment.