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 c12ccec commit 0863247Copy full SHA for 0863247
src/common/BlogApi.res
@@ -39,7 +39,9 @@ type post = {
39
}
40
41
let blogPathToSlug = path => {
42
- path->String.replaceRegExp(%re(`/^(archive|community\/)?\d\d\d\d-\d\d-\d\d-(.+)\.mdx$/`), "$2")
+ path
43
+ ->String.replaceRegExp(%re(`/^(archive\/)?\d\d\d\d-\d\d-\d\d-(.+)\.mdx$/`), "$2")
44
+ ->String.replaceRegExp(%re(`/^(community\/)?\d\d\d\d-\d\d-\d\d-(.+)\.mdx$/`), "$2")
45
46
47
let mdxFiles = dir => {
0 commit comments