From 88cc643e8e2e364b59b506e5ae1bc618fa114de9 Mon Sep 17 00:00:00 2001 From: Joone Hur Date: Sun, 24 Mar 2024 17:28:58 -0700 Subject: [PATCH] Fix forEach loop in tagMap iteration Remove commented out forEach loop in tagMap iteration for clarity and cleanliness. --- src/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 4b27792b..d7624ca5 100644 --- a/src/index.js +++ b/src/index.js @@ -49,9 +49,9 @@ addListPage(posts); const tagMap = gatherTags(posts); console.log(tagMap); -tagMap.forEach((value, key) => { +/*tagMap.forEach((value, key) => { console.log(`Key: ${key}, Values: ${value}`); -}); +});*/ createTagListPage(tagMap); @@ -60,7 +60,6 @@ for (let [tag, posts] of tagMap) { createTagPage(tag, posts); } - // Create about page const about = aboutMethod.readAbout(config.dev.about); aboutMethod.createAbout(about);