all repos — website @ 84519249928010e18f1f4bf05aaa4297a18fca8c

My website

Make template names clearer

Alan Pearce
commit

84519249928010e18f1f4bf05aaa4297a18fca8c

parent

09ea08a2194269f1005b0d08ab4a5a96e203d165

1 file changed, 2 insertions(+), 2 deletions(-)

changed files
M src/templates.tssrc/templates.ts
@@ -48,7 +48,7 @@
async function renderHomepage(posts: Array<Post>): Promise<string> { 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 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");