Skip to content

Commit c013e36

Browse files
committed
starting to work on first post
1 parent 7bbe1ea commit c013e36

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

_blogposts/community/2025-01-01-test-post.mdx renamed to _blogposts/community/2025-01-01-what-can-i-do-with-rescript.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
author: josh-derocher-vlk
33
date: "2025-01-01"
44
previewImg: /static/blog/compiler_release_11_1.jpg
5-
title: Test Post
6-
badge: release
5+
title: What can I do with ReScript?
76
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?
98
---

src/Blog.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 =

src/common/BlogApi.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ type post = {
3939
}
4040

4141
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")
4543
}
4644

4745
let mdxFiles = dir => {

0 commit comments

Comments
 (0)