about summary refs log tree commit diff stats
path: root/src/posts.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/posts.ts')
-rw-r--r--src/posts.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posts.ts b/src/posts.ts
index c727e12..5276c6c 100644
--- a/src/posts.ts
+++ b/src/posts.ts
@@ -18,7 +18,7 @@ export type Post = {
 };
 
 export async function getPost(filename: string): Promise<MatterFile> {
-  return matter(await Bun.file(filename).text());
+  return matter(await fs.readFile(filename, "utf8"));
 }
 
 export async function readPosts(