From 84519249928010e18f1f4bf05aaa4297a18fca8c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 23 Sep 2023 19:34:24 +0200 Subject: Make template names clearer --- src/templates.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/templates.ts b/src/templates.ts index 1006e21..a9fd857 100644 --- a/src/templates.ts +++ b/src/templates.ts @@ -48,7 +48,7 @@ async function render404Page(): Promise { async function renderHomepage(posts: Array): Promise { const file = matter(await Bun.file("content/_index.md").text()); const $ = await layout( - cheerio.load(await Bun.file("templates/index.html").text()), + cheerio.load(await Bun.file("templates/homepage.html").text()), config.title, ); @@ -101,7 +101,7 @@ async function renderPost(file: Post, content: string) { async function renderListPage(tag: string, posts: Post[]) { const $ = await layout( - cheerio.load(await Bun.file("templates/tag.html").text()), + cheerio.load(await Bun.file("templates/list.html").text()), tag || config.title, ); const $feed = $(".h-feed"); -- cgit 1.4.1