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 22author : josh-derocher-vlk
33date : " 2025-01-01"
44previewImg : /static/blog/compiler_release_11_1.jpg
5- title : Test Post
6- badge : release
5+ title : What can I do with ReScript?
76description : |
8- Unleashing ReScript from React
7+ Can I use Vite, or Next.js? Is it only for React? Can I use Node or Deno?
98---
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ module CategorySelector = {
5858 let text = (tab :> string )
5959 let href = switch tab {
6060 | Official => "/blog"
61- | Community => "community"
61+ | Community => "/blog/ community"
6262 | Archived => "/blog/archived"
6363 }
6464 let className =
Original file line number Diff line number Diff line change @@ -39,9 +39,7 @@ type post = {
3939}
4040
4141let 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" )
4543}
4644
4745let mdxFiles = dir => {
You can’t perform that action at this time.
0 commit comments