From 5f5d14f81469f6b549918fd02eb1c4a19da49102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Kl=C3=ADma?= Date: Wed, 20 Mar 2024 20:52:56 +0100 Subject: [PATCH] Fixed document title in ldkit.io --- www/components/App.tsx | 7 +++++-- www/components/Title.tsx | 20 -------------------- www/routes/_app.tsx | 4 +++- 3 files changed, 8 insertions(+), 23 deletions(-) delete mode 100644 www/components/Title.tsx diff --git a/www/components/App.tsx b/www/components/App.tsx index f7cb263..bdcc534 100644 --- a/www/components/App.tsx +++ b/www/components/App.tsx @@ -3,7 +3,6 @@ import { asset, Head } from "$fresh/runtime.ts"; import { Footer } from "./Footer.tsx"; import { Header } from "./Header.tsx"; -import { Title } from "./Title.tsx"; type AppProps = { children: ComponentChildren; @@ -11,10 +10,14 @@ type AppProps = { }; export function App({ children, title }: AppProps) { + const titleText = title + ? `${title} · LDkit` + : "LDkit · Linked Data query toolkit for TypeScript developers"; + return ( <> - {title} + {titleText}
diff --git a/www/components/Title.tsx b/www/components/Title.tsx deleted file mode 100644 index 84999c3..0000000 --- a/www/components/Title.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { ComponentChildren } from "preact"; - -type TitleProps = { - children?: ComponentChildren; -}; - -export function Title({ children }: TitleProps) { - return children - ? ( - - {children} - {" · LDkit"} - - ) - : ( - - {"LDkit · Linked Data query toolkit for TypeScript developers"} - - ); -} diff --git a/www/routes/_app.tsx b/www/routes/_app.tsx index 7e25805..34ed750 100644 --- a/www/routes/_app.tsx +++ b/www/routes/_app.tsx @@ -6,7 +6,9 @@ export default function App({ Component }: PageProps) { - www + + LDkit · Linked Data query toolkit for TypeScript developers +