diff --git a/www/routes/docs/[...slug].tsx b/www/routes/docs/[...slug].tsx index ad2967f8..8119564a 100644 --- a/www/routes/docs/[...slug].tsx +++ b/www/routes/docs/[...slug].tsx @@ -1,7 +1,15 @@ /** @jsx h */ /** @jsxFrag Fragment */ -import { apply, Fragment, h, Head, PageProps, tw } from "../../client_deps.ts"; +import { + apply, + asset, + Fragment, + h, + Head, + PageProps, + tw, +} from "../../client_deps.ts"; import { gfm, Handlers } from "../../server_deps.ts"; import DocsSidebar from "../../components/DocsSidebar.tsx"; import Footer from "../../components/Footer.tsx"; @@ -49,7 +57,7 @@ export default function DocsPage(props: PageProps) { <> {props.data.page?.title ?? "Not Found"} | fresh docs - +
@@ -62,7 +70,12 @@ export default function DocsPage(props: PageProps) { function Logo() { return ( - Fresh logo + Fresh logo ); } diff --git a/www/routes/gfm.css.ts b/www/routes/gfm.css.ts index 7324eb6d..bcdb7174 100644 --- a/www/routes/gfm.css.ts +++ b/www/routes/gfm.css.ts @@ -40,6 +40,7 @@ export const handler: Handlers = { return new Response(CSS, { headers: { "content-type": "text/css", + "cache-control": "public, max-age=31536000, immutable", }, }); }, diff --git a/www/routes/index.tsx b/www/routes/index.tsx index 2a397614..6f6a9711 100644 --- a/www/routes/index.tsx +++ b/www/routes/index.tsx @@ -1,7 +1,14 @@ /** @jsx h */ /** @jsxFrag Fragment */ -import { ComponentChildren, Fragment, h, Head, tw } from "../client_deps.ts"; +import { + asset, + ComponentChildren, + Fragment, + h, + Head, + tw, +} from "../client_deps.ts"; import Counter from "../islands/Counter.tsx"; import LemonDrop from "../islands/LemonDrop.tsx"; import Footer from "../components/Footer.tsx"; @@ -71,7 +78,7 @@ function Intro() { class={tw`max-w-screen-sm mx-auto my-16 px(4 sm:6 md:8) space-y-4`} >