Skip to content

Commit

Permalink
Fix forEach loop in tagMap iteration
Browse files Browse the repository at this point in the history
Remove commented out forEach loop in tagMap iteration for clarity and
cleanliness.
  • Loading branch information
joone committed Mar 25, 2024
1 parent b000757 commit 88cc643
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand Down

0 comments on commit 88cc643

Please sign in to comment.