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 +