From 74b1eb46bc3d6ebc54eba6890230bfac57844dfd Mon Sep 17 00:00:00 2001 From: wholteza Date: Fri, 15 Sep 2023 22:41:51 +0200 Subject: [PATCH] Posts links now show on index --- build.js | 9 ++++++++- notes/2-a-test/assets/git.png | Bin 0 -> 4438 bytes notes/2-a-test/note.md | 6 ++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 notes/2-a-test/assets/git.png create mode 100644 notes/2-a-test/note.md diff --git a/build.js b/build.js index 5bc277c..12af0c5 100644 --- a/build.js +++ b/build.js @@ -60,7 +60,14 @@ let htmlTemplate = fs.readFileSync( const links = manifest.map( (m) => `${m.name}` ); -htmlTemplate = htmlTemplate.replace("{{content}}", links); + +const unorderedListItems = links.map((l) => `
  • ${l}
  • `).join("\r\n"); +const html = ` +