about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAlan Pearce2023-09-23 19:34:24 +0200
committerAlan Pearce2023-09-23 19:34:24 +0200
commit84519249928010e18f1f4bf05aaa4297a18fca8c (patch)
treea4ce3f4a13a538efbc14d1a450bcc83b6fd7b364 /src
parent09ea08a2194269f1005b0d08ab4a5a96e203d165 (diff)
downloadwebsite-84519249928010e18f1f4bf05aaa4297a18fca8c.tar.lz
website-84519249928010e18f1f4bf05aaa4297a18fca8c.tar.zst
website-84519249928010e18f1f4bf05aaa4297a18fca8c.zip
Make template names clearer
Diffstat (limited to 'src')
-rw-r--r--src/templates.ts4
1 files changed, 2 insertions, 2 deletions
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<string> {
 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 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");