vblog
Viewing readonly version: 156View latest version
Script
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import getPosts from "../posts/posts";
import { frontmatter } from "./frontmatter";
import { markdown } from "./markdown";
import { parse } from "./parse";
async function getData() {
const src = await getPosts();
const posts = await Promise.all(src.map((p) => parse(p, [frontmatter, markdown])));
return {
posts,
};
}
export const data = await getData();
console.log(data);
export default data;
H
www