Skip to content

Commit 3621722

Browse files
committed
fix syntax lookup page
1 parent 57b45d6 commit 3621722

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/SyntaxLookup.res

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,9 @@ let default = (props: props) => {
340340

341341
<>
342342
<Meta
343-
siteName="ReScript Blog" title description="News, Announcements, Release Notes and more"
343+
siteName="ReScript Syntax Lookup"
344+
title
345+
description="Discover ReScript syntax constructs with our lookup tool"
344346
/>
345347
<div className="mt-4 xs:mt-16">
346348
<div className="text-gray-80">
@@ -366,7 +368,6 @@ let getStaticProps: Next.GetStaticProps.t<props, params> = async _ctx => {
366368
let allFiles = Node.Fs.readdirSync(dir)->Js.Array2.map(async file => {
367369
let fullPath = Node.Path.join2(dir, file)
368370
let source = fullPath->Node.Fs.readFileSync(#utf8)
369-
// await MdxUtils.serialize(source)
370371
await Mdx.Remote.serialize(source, {"parseFrontmatter": true, "mdxOptions": mdxOptions})
371372
})
372373

src/common/App.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ let make = (props: props): React.element => {
129129
<CommunityLayout frontmatter={component->frontmatter}> content </CommunityLayout>
130130
| list{"try"} => content
131131
| list{"blog"} => content // Blog implements its own layout as well
132+
| list{"syntax-lookup"} => content
132133
| list{"packages"} => content
133134
| list{"blog", ..._rest} => // Here, the layout will be handled by the Blog_Article component
134135
// to keep the frontmatter parsing etc in one place

0 commit comments

Comments
 (0)