From a765ce7f74078628f0c90a2114859b93168627a8 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Fri, 4 Aug 2023 22:38:09 +0200 Subject: [PATCH] feat: add title --- components/layouts/main.tsx | 6 ++++-- routes/articles/[name].tsx | 2 +- routes/articles/index.tsx | 4 ++-- routes/movies/[name].tsx | 2 +- routes/recipes/[name].tsx | 2 +- routes/recipes/index.tsx | 2 +- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/components/layouts/main.tsx b/components/layouts/main.tsx index 1184f9b..0877f17 100644 --- a/components/layouts/main.tsx +++ b/components/layouts/main.tsx @@ -1,6 +1,6 @@ import { ComponentChildren } from "preact"; import { menu } from "@lib/menus.ts"; -import { CSS, KATEX_CSS,render } from "https://deno.land/x/gfm/mod.ts"; +import { CSS, KATEX_CSS, render } from "https://deno.land/x/gfm/mod.ts"; import { Head } from "$fresh/runtime.ts"; export type Props = { @@ -11,7 +11,7 @@ export type Props = { description?: string; }; -export const MainLayout = ({ children, url }: Props) => { +export const MainLayout = ({ children, url, title }: Props) => { return (
{ + {title && + {title}}