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 @@