Skip to content

Commit 963fd2a

Browse files
committed
Change navigation github link / add missing forum link in mobile nav
1 parent e8fe3a7 commit 963fd2a

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

components/Navigation.re

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ let linkOrActiveLinkSubroute = (~target, ~route) => {
1212
Js.String2.startsWith(route, target) ? activeLink : link;
1313
};
1414

15+
let githubHref = "https://github.com/rescript-lang/rescript-compiler";
16+
let twitterHref = "https://twitter.com/rescriptlang";
17+
let discourseHref = "https://forum.rescript-lang.org";
18+
1519
module CollapsibleLink = {
1620
// KeepOpen = Menu has been opened and should stay open
1721
type state =
@@ -342,13 +346,22 @@ module MobileNav = {
342346
</li>
343347
<li className=base>
344348
<a
345-
href="https://github.com/reason-association/rescript-lang.org"
349+
href=githubHref
346350
rel="noopener noreferrer"
347351
target="_blank"
348352
className=extLink>
349353
"Github"->s
350354
</a>
351355
</li>
356+
<li className=base>
357+
<a
358+
href=discourseHref
359+
rel="noopener noreferrer"
360+
target="_blank"
361+
className=extLink>
362+
"Forum"->s
363+
</a>
364+
</li>
352365
</ul>
353366
</div>;
354367
};
@@ -550,7 +563,7 @@ let make = (~overlayState: (bool, (bool => bool) => unit)) => {
550563
</div>
551564
<div className="hidden sm:flex">
552565
<a
553-
href="https://github.com/reason-association/rescript-lang.org"
566+
href=githubHref
554567
rel="noopener noreferrer"
555568
target="_blank"
556569
className={"mr-5 " ++ link}
@@ -566,7 +579,7 @@ let make = (~overlayState: (bool, (bool => bool) => unit)) => {
566579
<Icon.Twitter className="w-6 h-6 opacity-50 hover:opacity-100" />
567580
</a>
568581
<a
569-
href="https://forum.rescript-lang.org"
582+
href=discourseHref
570583
rel="noopener noreferrer"
571584
target="_blank"
572585
className=link

0 commit comments

Comments
 (0)