Skip to content

Commit 88ac260

Browse files
committed
fix: Highlight
1 parent 23e7447 commit 88ac260

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

templates/Layout.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
import type { Child } from "hono/jsx";
55
import { basePath, docPages, siteMetadata } from "../data/docs.ts";
6-
import { themeInitScript } from "./scripts.ts";
6+
import { mainScript, themeInitScript } from "./scripts.ts";
77

88
const GITHUB_URL = "https://github.com/jsr-probitas/probitas";
99

@@ -114,8 +114,6 @@ export function Layout(
114114
type="application/ld+json"
115115
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
116116
/>
117-
<script src={`${CDN.hljs}/highlight.min.js`} />
118-
<script src={`${CDN.hljs}/languages/typescript.min.js`} />
119117
<script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
120118
</head>
121119
<body>
@@ -126,6 +124,7 @@ export function Layout(
126124
<script src={`${basePath}/pagefind/pagefind-ui.js`} />
127125
<script dangerouslySetInnerHTML={{ __html: searchScript }} />
128126
<script dangerouslySetInnerHTML={{ __html: scrollToTopScript }} />
127+
<script dangerouslySetInnerHTML={{ __html: mainScript }} />
129128
</body>
130129
</html>
131130
);

0 commit comments

Comments
 (0)