initial commit
This commit is contained in:
8
src/data/posts.ts
Normal file
8
src/data/posts.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// @ts-expect-error
|
||||
import Posts from "./posts.json";
|
||||
import type { Post } from "~/types";
|
||||
|
||||
export const posts: Post[] = Posts.map((p: Post) => ({
|
||||
...p,
|
||||
date: new Date(p.date),
|
||||
}));
|
||||
Reference in New Issue
Block a user