diff options
-rw-r--r-- | src/templates.ts | 4 | ||||
-rw-r--r-- | templates/homepage.html (renamed from templates/index.html) | 0 | ||||
-rw-r--r-- | templates/list.html (renamed from templates/tag.html) | 0 |
3 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"); diff --git a/templates/index.html b/templates/homepage.html index 1138e04..1138e04 100644 --- a/templates/index.html +++ b/templates/homepage.html diff --git a/templates/tag.html b/templates/list.html index ae5b8e9..ae5b8e9 100644 --- a/templates/tag.html +++ b/templates/list.html |