Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed document title in ldkit.io #109

Merged
merged 1 commit into from Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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