Skip to content

Commit

Permalink
Fixed document title in ldkit.io
Browse files Browse the repository at this point in the history
  • Loading branch information
karelklima committed Mar 20, 2024
1 parent 24ea469 commit 5f5d14f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 23 deletions.
7 changes: 5 additions & 2 deletions www/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@ 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;
title?: string;
};

export function App({ children, title }: AppProps) {
const titleText = title
? `${title} · LDkit`
: "LDkit · Linked Data query toolkit for TypeScript developers";

return (
<>
<Head>
<Title>{title}</Title>
<title>{titleText}</title>
<link rel="stylesheet" href={asset("/gfm.css")} />
</Head>
<div class="flex flex-col min-h-screen dark:text-[#c9d1d9] dark:bg-[#0d1117]">
Expand Down
20 changes: 0 additions & 20 deletions www/components/Title.tsx

This file was deleted.

4 changes: 3 additions & 1 deletion www/routes/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ export default function App({ Component }: PageProps) {
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>www</title>
<title>
LDkit · Linked Data query toolkit for TypeScript developers
</title>
</head>
<body>
<Component />
Expand Down

0 comments on commit 5f5d14f

Please sign in to comment.