about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-04-01 22:17:08 +0200
committerAlan Pearce2024-04-01 22:17:08 +0200
commit2ac66e9a0f7f924edd9dc9c374121f427a077d7d (patch)
treefbe734ef5afd71ea8fcc2dc11a0b8e7849c0c36d
parent6e947c38b7f27a7a320600c70b55afd8f92f534c (diff)
downloadwebsite-2ac66e9a0f7f924edd9dc9c374121f427a077d7d.tar.lz
website-2ac66e9a0f7f924edd9dc9c374121f427a077d7d.tar.zst
website-2ac66e9a0f7f924edd9dc9c374121f427a077d7d.zip
posts: "fix" type error
-rw-r--r--src/posts.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posts.ts b/src/posts.ts
index 5276c6c..e15accb 100644
--- a/src/posts.ts
+++ b/src/posts.ts
@@ -43,7 +43,7 @@ export async function readPosts(
 
         const file = await getPost(input);
 
-        file.data.taxonomies?.tags?.map((t: string) =>
+        (file.data.taxonomies as any)?.tags?.map((t: string) =>
           tags.add(t.toLowerCase()),
         );
         posts.push({