all repos — website @ 2ac66e9a0f7f924edd9dc9c374121f427a077d7d

My website

posts: "fix" type error
Alan Pearce alan@alanpearce.eu
Mon, 01 Apr 2024 22:17:08 +0200
commit

2ac66e9a0f7f924edd9dc9c374121f427a077d7d

parent

6e947c38b7f27a7a320600c70b55afd8f92f534c

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/posts.tssrc/posts.ts
@@ -43,7 +43,7 @@ const url = pathFromRoot.replace(root, "").replace(".md", "/"); 
         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({