From b549e4001562dd7a9f92084b15602bf348905e38 Mon Sep 17 00:00:00 2001 From: tezlm Date: Wed, 9 Oct 2024 14:44:32 -0700 Subject: [PATCH] fix index links --- blog/genfeed.ts | 6 +++--- blog/index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/blog/genfeed.ts b/blog/genfeed.ts index 4eeb42a..31b31df 100644 --- a/blog/genfeed.ts +++ b/blog/genfeed.ts @@ -47,15 +47,15 @@ const renderIndex = (entries: Array) => { title: "index", mtime: new Date(), path: "/index.html", - content: "\n\n" + a.map(i => `- [${i.title}](${i.path})`).join("\n"), + content: "\n\n" + a.map(i => `- [${i.title}](${i.path.replace(/\.md$/, ".html")})`).join("\n"), }); } const renderItem = (item: Item) => ` ${item.title} - ${item.path} - https://celery.eu.org/blog/${item.path} + ${item.path.replace(/\.md$/, ".html")} + https://celery.eu.org/blog/${item.path.replace(/\.md$/, ".html")} ${marked.parse(item.content)} ${item.mtime.toISOString()} diff --git a/blog/index.html b/blog/index.html index ae3cca4..6543df1 100644 --- a/blog/index.html +++ b/blog/index.html @@ -14,7 +14,7 @@