Skip to content

Commit 6b636d9

Browse files
committed
fix: correct links
1 parent ff4fae9 commit 6b636d9

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/layouts/base.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Link } from "../components/link";
12
import { Sidebar } from "../components/Sidebar";
23

34
export default function BaseLayout({ children, sideBarItems = [] }) {
@@ -6,9 +7,9 @@ export default function BaseLayout({ children, sideBarItems = [] }) {
67
<div class="min-h-[80vh] mx-auto max-w-4xl p-2">
78
<header class="flex flex-col justify-center h-[400px]">
89
<h1 class="font-semibold text-2xl">
9-
<a href="/" class="hover:underline hover:underline-offset-4">
10+
<Link href="/" class="hover:underline hover:underline-offset-4">
1011
Preact Docs
11-
</a>
12+
</Link>
1213
</h1>
1314
<p>
1415
<small>Docs template based on preact</small>
@@ -34,12 +35,16 @@ export default function BaseLayout({ children, sideBarItems = [] }) {
3435
<a
3536
class="w-full hover:underline hover:underline-offset-4"
3637
href="https://github.com/barelyhuman"
38+
target="_blank"
39+
rel="noopener"
3740
>
3841
Github
3942
</a>
4043
</li>
4144
<li class="text-xs">
4245
<a
46+
target="_blank"
47+
rel="noopener"
4348
class="w-full hover:underline hover:underline-offset-4"
4449
href="https://github.com/barelyhuman"
4550
>

0 commit comments

Comments
 (0)