-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlayout.tsx
44 lines (39 loc) · 1.27 KB
/
layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"use client";
import "./globals.css";
import { ThemeProvider } from "@/components/theme-provider";
import { useEffect } from 'react';
import { prefetchBangs } from '@/utils/bangs';
// Add KaTeX CSS
import 'katex/dist/katex.min.css';
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
// Prefetch bangs when the app initializes
useEffect(() => {
prefetchBangs();
}, []);
return (
<html lang="en" suppressHydrationWarning>
<head>
{/* Remove the static title as we'll set it dynamically */}
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Tekir is a fast, open-source, and privacy-focused search engine." />
<link rel="icon" href="/favicon.ico" />
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Tekir" />
<script defer src="https://telemetry.tekir.co/script.js" data-website-id="71b0a4f4-071d-4e5f-a39f-203dbfa92d5c"></script>
</head>
<body>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
{children}
</ThemeProvider>
</body>
</html>
);
}