Skip to content

Commit db112d6

Browse files
committed
Use getUrlRelativeToBase for another link
1 parent 9f8a470 commit db112d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/docs/styling/typography.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ slug: "typography-styling"
77
import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/block/tabs';
88
import Accordion from "@/components/block/Accordion.astro"
99
import AccordionContent from "@/components/block/AccordionContent.astro"
10+
import { getUrlRelativeToBase } from "@/lib/utils";
1011

1112

1213
Learn how to style typography in your site using our predefined styles and Tailwind CSS utilities.
@@ -264,7 +265,7 @@ This is how a table will render:
264265
<li>Third item in the list</li>
265266
</ul>
266267

267-
Note: there is also the <a href={import.meta.env.BASE_URL + "/docs/block-components/checklist"}>Checklist</a> component:
268+
Note: there is also the <a href={getUrlRelativeToBase("/docs/block-components/checklist")}>Checklist</a> component:
268269

269270
import Checklist from "@/components/block/Checklist.astro"
270271

0 commit comments

Comments
 (0)