We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59125b6 commit 0654642Copy full SHA for 0654642
src/common/BlogApi.res
@@ -77,11 +77,11 @@ let getAllPosts = () => {
77
}
78
})
79
80
- let communityPosts = mdxFiles(communityPostsDirectory)->Js.Array2.map(path => {
+ let communityPosts = mdxFiles(communityPostsDirectory)->Array.map(path => {
81
let {GrayMatter.data: data} =
82
Node.Path.join2(communityPostsDirectory, path)->Node.Fs.readFileSync->GrayMatter.matter
83
switch BlogFrontmatter.decode(data) {
84
- | Error(msg) => Js.Exn.raiseError(msg)
+ | Error(msg) => Exn.raiseError(msg)
85
| Ok(d) => {
86
path: Node.Path.join2("community", path),
87
frontmatter: d,
0 commit comments