feat: fix some shit
This commit is contained in:
@ -3,6 +3,7 @@ import { resources } from "@lib/resources.ts";
|
||||
import { CSS, KATEX_CSS } from "https://deno.land/x/gfm@0.2.5/mod.ts";
|
||||
import { Head } from "$fresh/runtime.ts";
|
||||
import Search, { RedirectSearchHandler } from "@islands/Search.tsx";
|
||||
import { KMenu } from "@islands/KMenu.tsx";
|
||||
|
||||
export type Props = {
|
||||
children: ComponentChildren;
|
||||
@ -27,6 +28,8 @@ export const MainLayout = ({ children, url, title, context }: Props) => {
|
||||
{title &&
|
||||
<title>{title}</title>}
|
||||
</Head>
|
||||
<RedirectSearchHandler />
|
||||
<KMenu type="main" context={context} />
|
||||
<aside class="p-4 hidden md:block">
|
||||
<nav class="min-h-fit rounded-3xl p-3 grid gap-3 fixed t-0">
|
||||
{Object.values(resources).map((m) => {
|
||||
@ -43,7 +46,6 @@ export const MainLayout = ({ children, url, title, context }: Props) => {
|
||||
})}
|
||||
</nav>
|
||||
</aside>
|
||||
<RedirectSearchHandler />
|
||||
<main
|
||||
class="py-5"
|
||||
style={{ fontFamily: "Work Sans" }}
|
||||
|
Reference in New Issue
Block a user