all repos — homestead @ 5a643c819bdfa9d6bca2779ccddb14faea17229a

Code for my website

Make template names clearer

Alan Pearce
commit

5a643c819bdfa9d6bca2779ccddb14faea17229a

parent

21a268df4edf262312598ae07de59438c28396f9

3 files changed, 2 insertions(+), 2 deletions(-)

jump to
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");