Skip to content

Commit

Permalink
Fixed document title in ldkit.io (#109)
Browse files Browse the repository at this point in the history
Resolves #108
  • Loading branch information
karelklima committed Mar 20, 2024
1 parent 24ea469 commit e371a5a
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
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
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 e371a5a

Please sign in to comment.