From 9293108dcf66b378842b5aa4c7421e2799711f49 Mon Sep 17 00:00:00 2001 From: wholteza Date: Fri, 19 Sep 2025 20:54:49 +0200 Subject: [PATCH] Redesign of index Squashed commit of the following: commit 1d157b529fc56b424259b53c7eb5b8ec0e035c7a Author: wholteza Date: Fri Sep 19 20:53:00 2025 +0200 Improve on profile commit 3e3c209ac99e065b2516f7c5285c3800a6a78b1c Author: wholteza Date: Fri Sep 19 20:28:21 2025 +0200 Finish styling index commit 4e68f393bd35ea52b9914bf23a5aaf54865d85fc Author: wholteza Date: Fri Sep 19 19:45:22 2025 +0200 Links commit fcba900a7e0484ed8043f762bb7f24c16a2ba213 Author: wholteza Date: Fri Sep 19 15:37:35 2025 +0200 add fetchpriority commit 0478cb71b96b721a81418c878701931817837d09 Author: wholteza Date: Thu Sep 18 14:44:35 2025 +0200 wip redesign --- .../@zblog/toolchain/src/start-page-plugin.ts | 10 +- src/assets/favicon.ico | Bin 0 -> 15406 bytes src/assets/profile.jpg | Bin 0 -> 3215086 bytes src/index.ts | 8 +- src/templates/index.html | 149 +++++++++++++++--- 5 files changed, 139 insertions(+), 28 deletions(-) create mode 100644 src/assets/favicon.ico create mode 100644 src/assets/profile.jpg diff --git a/packages/@zblog/toolchain/src/start-page-plugin.ts b/packages/@zblog/toolchain/src/start-page-plugin.ts index 5ebf43d..6189ab0 100644 --- a/packages/@zblog/toolchain/src/start-page-plugin.ts +++ b/packages/@zblog/toolchain/src/start-page-plugin.ts @@ -14,13 +14,13 @@ export class StartPagePlugin implements IPluginBuilder { return (builderContext) => { let htmlTemplate = readFileAsText(this.options.indexTemplatePath); const links = builderContext.menuManifest - .map((m) => `${m.name}`) + .map((m) => { + const name = m.name.slice(m.name.indexOf("-") + 1).replaceAll("-", " "); + return `

${name}

Read here!
` + }) .reverse(); - const unorderedListItems = links.map((l) => `
  • ${l}
  • `).join("\r\n"); const html = ` -