Skip to content

Commit 6f4f519

Browse files
committed
perf: bundle katex.css with site
1 parent d3c512f commit 6f4f519

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎app/layout.tsx‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { RootProvider } from "fumadocs-ui/provider";
22
import type { ReactNode } from "react";
33
import type { Metadata } from "next";
44
import PopupHandler from "@/components/PopupHandler";
5+
import "katex/dist/katex.css";
56
import "./global.css";
67

78
export const metadata: Metadata = {
@@ -28,12 +29,7 @@ export const metadata: Metadata = {
2829
export default function RootLayout({ children }: { children: ReactNode }) {
2930
return (
3031
<html lang="en" dir="ltr" suppressHydrationWarning>
31-
<head>
32-
<link
33-
rel="stylesheet"
34-
href="https://cdn.jsdelivr.net/npm/katex/dist/katex.css"
35-
/>
36-
</head>
32+
<head />
3733
<body>
3834
<RootProvider search={{ options: { type: "static" } }}>
3935
<PopupHandler />

0 commit comments

Comments
 (0)