fix omitted base.css

This commit is contained in:
monoid 2023-02-15 00:04:09 +09:00
parent 84fb327256
commit c53ca6440c
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import { Head } from "$fresh/runtime.ts"; import { Head, asset } from "$fresh/runtime.ts";
import { HandlerContext, Handlers, PageProps, Status } from "$fresh/server.ts"; import { HandlerContext, Handlers, PageProps, Status } from "$fresh/server.ts";
import DocSearch from "../../islands/DocSearch.tsx"; import DocSearch from "../../islands/DocSearch.tsx";
import { Doc } from "../../src/collect.ts"; import { Doc } from "../../src/collect.ts";
@ -24,6 +24,7 @@ export default function Docs(props: PageProps<{ docs: Doc[] }>) {
<> <>
<Head> <Head>
<title>Simple file server - Doc</title> <title>Simple file server - Doc</title>
<link rel="stylesheet" href={asset("/base.css")} />
</Head> </Head>
<div class="p-4 mx-auto max-w-screen-md"> <div class="p-4 mx-auto max-w-screen-md">
<DocSearch docs={docs}></DocSearch> <DocSearch docs={docs}></DocSearch>