Skip to content

Commit cdc91d8

Browse files
committed
feat: update top page links to use base path
1 parent 9dfee3d commit cdc91d8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

website/src/components/ui/common/Breadcrumbs.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { basePath } from "../../../metadata";
12
import type { Page } from "../../../types/model";
23
import { ChevronRightIcon, HomeIcon } from "../../icons";
34

@@ -10,7 +11,7 @@ export const Breadcrumbs = ({ path }: BreadcrumbsProps) => {
1011
<nav class="flex justify-between px-3.5 py-1 border border-neutral-200/60 rounded-md">
1112
<ol class="inline-flex flex-wrap items-center space-x-1 text-sm text-gray-600">
1213
<li class="flex items-center h-full">
13-
<a href="/" class="py-1 hover:text-gray-800 transition-colors">
14+
<a href={basePath} class="py-1 hover:text-gray-800 transition-colors">
1415
<div class="w-4 h-4">
1516
<HomeIcon />
1617
</div>

website/src/components/ui/common/SiteTitle.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import { basePath } from "../../../metadata";
12
export const SiteTitle = () => {
23
return (
3-
<a href="/" class="logo-box hover:opacity-80 transition-opacity">
4+
<a href={basePath} class="logo-box hover:opacity-80 transition-opacity">
45
<div class="flex items-baseline">
56
<span class="text-base font-bold text-teal-600">Typst</span>
67
<span class="text-base font-medium text-gray-600 ml-1">

0 commit comments

Comments
 (0)