File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ let linkOrActiveLinkSubroute = (~target, ~route) => {
12
12
Js . String2 . startsWith(route, target) ? activeLink : link;
13
13
};
14
14
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
+
15
19
module CollapsibleLink = {
16
20
// KeepOpen = Menu has been opened and should stay open
17
21
type state =
@@ -342,13 +346,22 @@ module MobileNav = {
342
346
</li >
343
347
<li className= base>
344
348
<a
345
- href= "https://github.com/reason-association/rescript-lang.org"
349
+ href= githubHref
346
350
rel= "noopener noreferrer"
347
351
target= "_blank"
348
352
className= extLink>
349
353
"Github" -> s
350
354
</a >
351
355
</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 >
352
365
</ul >
353
366
</div >;
354
367
};
@@ -550,7 +563,7 @@ let make = (~overlayState: (bool, (bool => bool) => unit)) => {
550
563
</div >
551
564
<div className= "hidden sm:flex" >
552
565
<a
553
- href= "https://github.com/reason-association/rescript-lang.org"
566
+ href= githubHref
554
567
rel= "noopener noreferrer"
555
568
target= "_blank"
556
569
className= {"mr-5 " ++ link}
@@ -566,7 +579,7 @@ let make = (~overlayState: (bool, (bool => bool) => unit)) => {
566
579
<Icon . Twitter className= "w-6 h-6 opacity-50 hover:opacity-100" />
567
580
</a >
568
581
<a
569
- href= "https://forum.rescript-lang.org"
582
+ href= discourseHref
570
583
rel= "noopener noreferrer"
571
584
target= "_blank"
572
585
className= link
You can’t perform that action at this time.
0 commit comments