mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 13:19:16 +00:00
55 lines
1.8 KiB
TypeScript
55 lines
1.8 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { noto_sans, noto_sans_arabic } from "@/app/fonts";
|
|
import "../globals.css";
|
|
import { ContentSecurityPolicy } from "../common/layoutHelper";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Khoj AI - Chat",
|
|
description:
|
|
"Ask anything. Research answers from across the internet and your documents, draft messages, summarize documents, generate paintings and chat with personal agents.",
|
|
icons: {
|
|
icon: "/static/assets/icons/khoj_lantern.ico",
|
|
apple: "/static/assets/icons/khoj_lantern_256x256.png",
|
|
},
|
|
openGraph: {
|
|
siteName: "Khoj AI",
|
|
title: "Khoj AI - Chat",
|
|
description:
|
|
"Ask anything. Research answers from across the internet and your documents, draft messages, summarize documents, generate paintings and chat with personal agents.",
|
|
url: "https://app.khoj.dev/chat",
|
|
type: "website",
|
|
images: [
|
|
{
|
|
url: "https://assets.khoj.dev/khoj_hero.png",
|
|
width: 940,
|
|
height: 525,
|
|
},
|
|
{
|
|
url: "https://assets.khoj.dev/khoj_lantern_256x256.png",
|
|
width: 256,
|
|
height: 256,
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" className={`${noto_sans.variable} ${noto_sans_arabic.variable}`}>
|
|
<ContentSecurityPolicy />
|
|
<body>
|
|
{children}
|
|
<script
|
|
dangerouslySetInnerHTML={{
|
|
__html: `window.EXCALIDRAW_ASSET_PATH = 'https://assets.khoj.dev/@excalidraw/excalidraw/dist/';`,
|
|
}}
|
|
/>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|