File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 2
2
author : josh-derocher-vlk
3
3
date : " 2025-01-01"
4
4
previewImg : /static/blog/compiler_release_11_1.jpg
5
- title : Test Post
6
- badge : release
5
+ title : What can I do with ReScript?
7
6
description : |
8
- Unleashing ReScript from React
7
+ Can I use Vite, or Next.js? Is it only for React? Can I use Node or Deno?
9
8
---
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ module CategorySelector = {
58
58
let text = (tab :> string )
59
59
let href = switch tab {
60
60
| Official => "/blog"
61
- | Community => "community"
61
+ | Community => "/blog/ community"
62
62
| Archived => "/blog/archived"
63
63
}
64
64
let className =
Original file line number Diff line number Diff line change @@ -39,9 +39,7 @@ type post = {
39
39
}
40
40
41
41
let blogPathToSlug = path => {
42
- path
43
- -> Js .String2 .replaceByRe (%re (` /^(archive\/ )?\d\d\d\d -\d\d -\d\d -(.+)\. mdx$/` ), "$2" )
44
- -> Js .String2 .replaceByRe (%re (` /^(community\/ )?\d\d\d\d -\d\d -\d\d -(.+)\. mdx$/` ), "$2" )
42
+ path -> Js .String2 .replaceByRe (%re (` /^(archive|community\/ )?\d\d\d\d -\d\d -\d\d -(.+)\. mdx$/` ), "$2" )
45
43
}
46
44
47
45
let mdxFiles = dir => {
You can’t perform that action at this time.
0 commit comments