-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathlayout.tsx
77 lines (72 loc) · 2.25 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import "./global.css"
import { Provider } from "./provider"
import { Inter } from "next/font/google"
import type { Metadata, Viewport } from "next"
import type { ReactNode } from "react"
import Script from "next/script"
const baseUrl =
process.env.NODE_ENV === "development"
? new URL("http://localhost:3000")
: new URL(`https://${process.env.VERCEL_URL}`)
const inter = Inter({
subsets: ["latin"],
display: "swap",
variable: "--font-inter"
})
export default function Layout({ children }: { children: ReactNode }) {
return (
<html lang="en" className={`${inter.variable}`} suppressHydrationWarning>
<body>
<Provider>{children}</Provider>
</body>
<Script
async
src="https://u.gitbutler.com/script.js"
data-website-id="2f6dbf62-091f-4e57-bc47-7b1c6611a98b"
/>
</html>
)
}
export const metadata: Metadata = {
title: {
template: "%s | GitButler",
default: "GitButler"
},
description:
"GitButler is a new Source Code Management system designed to manage your branches, record and backup your work, be your Git client, help with your code and much more",
openGraph: {
images: "/cover.png",
title: {
template: "%s | GitButler",
default: "GitButler"
},
url: "https://docs.gitbutler.com",
siteName: "GitButler Docs",
description:
"GitButler is a new Source Code Management system designed to manage your branches, record and backup your work, be your Git client, help with your code and much more"
},
twitter: {
card: "summary_large_image",
creator: "@gitbutler",
title: "GitButler",
description:
"GitButler is a new Source Code Management system designed to manage your branches, record and backup your work, be your Git client, help with your code and much more",
images: "/cover.png"
},
metadataBase: baseUrl,
applicationName: "GitButler",
robots: {
index: true,
follow: true
},
icons: { icon: "/fav/fav-64.png", apple: "/fav/fav-180.png" }
}
export const viewport: Viewport = {
themeColor: [
{ media: "(prefers-color-scheme: dark)", color: "#707070" },
{ media: "(prefers-color-scheme: light)", color: "#f5f5f3" }
],
colorScheme: "dark light",
width: "device-width",
initialScale: 1
}