diff --git a/app/components/Highlight.tsx b/app/components/Highlight.tsx index 58d165d..48aa1ec 100644 --- a/app/components/Highlight.tsx +++ b/app/components/Highlight.tsx @@ -1,7 +1,8 @@ -import type { JSX, ComponentProps, ParentComponent } from "solid-js"; +import type { ComponentProps, ParentComponent } from "solid-js"; import { createEffect, createMemo, mergeProps, on, splitProps } from "solid-js"; import * as Prismjs from "prismjs"; +import clsx from "clsx"; /** * @see https://prismjs.com/#supported-languages @@ -345,9 +346,9 @@ export const Highlight: ParentComponent = (_props) => { ); return ( -
+		
 			
diff --git a/app/layouts/LayoutDefault.tsx b/app/layouts/LayoutDefault.tsx
index b364654..16bbc9c 100755
--- a/app/layouts/LayoutDefault.tsx
+++ b/app/layouts/LayoutDefault.tsx
@@ -129,14 +129,13 @@ type DefaultLayoutProps = {
 
 export default function DefaultLayout(props: DefaultLayoutProps) {
 	const { urlPathname } = usePageContext();
-	const isHomePage = urlPathname === "/";
 
 	return (
 		<>
 			
- {isHomePage && } + {urlPathname === "/" && }