feat: add links to entire article header

This commit is contained in:
2023-12-14 13:28:40 +01:00
parent 28a48b752b
commit d5975e9103
3 changed files with 14 additions and 20 deletions

View File

@ -1,10 +1,10 @@
import { LayoutProps } from "$fresh/server.ts";
import { PageProps } from "$fresh/server.ts";
import { resources } from "@lib/resources.ts";
import { CSS, KATEX_CSS } from "https://deno.land/x/gfm@0.2.5/mod.ts";
import { Head, Partial } from "$fresh/runtime.ts";
import { Head } from "$fresh/runtime.ts";
import { Emoji } from "@components/Emoji.tsx";
export default function MyLayout({ Component }: LayoutProps) {
export default function MyLayout({ Component }: PageProps) {
return (
<div
class="md:grid mx-auto"
@ -14,7 +14,7 @@ export default function MyLayout({ Component }: LayoutProps) {
<style>{CSS}</style>
<style>{KATEX_CSS}</style>
</Head>
<aside class="p-4 hidden md:block" f-client-nav>
<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) => {
return (
@ -32,9 +32,7 @@ export default function MyLayout({ Component }: LayoutProps) {
class="py-5"
style={{ fontFamily: "Work Sans" }}
>
<Partial name="content">
<Component />
</Partial>
<Component />
</main>
</div>
);