| 1 | import type { Metadata } from "next"; |
| 2 | import Script from "next/script |
| 3 | import { Geist, Geist_Mono |
| 4 | import "./globals.css"; |
| 5 | |
| 6 | import { Providers } |
| 7 | import { SITE_URL } |
| 8 | import { Toaster } |
| 9 | |
| 10 | const geistSans = Geist |
| 11 | variable: "--font-geist-sans", |
| 12 | subsets: ["latin"], |
| 13 | }); |
| 14 | |
| 15 | const geistMono = Geist_Mono |
| 16 | variable: "--font-geist-mono", |
| 17 | subsets: ["latin"], |
| 18 | }); |
| 19 | |
| 20 | const DESCRIPTION = |
| 21 | "Git hosting with code review, issues, releases, code search across every repository, teams and verified commits. Use Ghost Cloud or run it on your own server."; |
| 22 | |
| 23 | export const metadata: |
| 24 | // Makes the file-based opengraph-image routes resolve to absolute URLs. |
| 25 | metadataBase: new URL |
| 26 | title: { default: " |
| 27 | description: DESCRIPTION, |
| 28 | openGraph: { |
| 29 | siteName: "Ghost", |
| 30 | type: "website", |
| 31 | title: "Ghost", |
| 32 | description: DESCRIPTION, |
| 33 | url: "/", |
| 34 | }, |
| 35 | twitter: { card: " |
| 36 | }; |
| 37 | |
| 38 | export default function RootLayout |
| 39 | return ( |
| 40 | <html |
| 41 | lang="en" |
| 42 | suppressHydrationWarning |
| 43 | className={`${geistSans |
| 44 | > |
| 45 | <head> |
| 46 | {process.env.NODE_ENV |
| 47 | <Script |
| 48 | src="//unpkg.com/react-grab/dist/index.global.js" |
| 49 | crossOrigin="anonymous" |
| 50 | strategy="beforeInteractive" |
| 51 | /> |
| 52 | )} |
| 53 | </head> |
| 54 | <body className="min-h-full flex flex-col |
| 55 | <Providers>{children} |
| 56 | <Toaster /> |
| 57 | </body> |
| 58 | </html> |
| 59 | ); |
| 60 | } |