|
1 | | -import './globals.css' |
2 | | -import type { Metadata } from 'next' |
3 | | -import { SavedProvider } from './saved/SavedContext' |
4 | | -import Navbar from '@/components/Navbar'; |
5 | | -import Footer from '@/components/Footer'; |
| 1 | +import "./globals.css" |
| 2 | +import type { Metadata } from "next" |
| 3 | +import { SavedProvider } from "./saved/SavedContext" |
| 4 | +import Navbar from "@/components/Navbar" |
| 5 | +import Footer from "@/components/Footer" |
6 | 6 | import { Analytics } from "@vercel/analytics/react" |
7 | 7 | import { Toaster } from "@/components/ui/toaster" |
8 | 8 | import { SpeedInsights } from "@vercel/speed-insights/next" |
9 | | -import DiscordPromo from '@/components/DiscordPromo'; |
| 9 | +import DiscordPromo from "@/components/DiscordPromo" |
10 | 10 |
|
11 | 11 | export const metadata: Metadata = { |
12 | | - title: 'Code Gems', |
13 | | - description: 'Welcome to Code Gems - a community-driven platform for discovering and sharing remarkable GitHub projects! The heart of Code Gems is YOU - developers, designers, and tech enthusiasts who know about amazing open-source projects that deserve more visibility.', |
14 | | - keywords: ['github', 'projects', 'code', 'gems', 'programming'], |
| 12 | + title: "Code Gems - Discover Remarkable GitHub Projects", |
| 13 | + description: |
| 14 | + "Welcome to Code Gems - a community-driven platform for discovering and sharing remarkable GitHub projects! Explore amazing open-source projects curated by developers, designers, and tech enthusiasts.", |
| 15 | + keywords: ["github", "projects", "code", "gems", "programming", "open-source", "developer tools"], |
| 16 | + authors: [{ name: "Bebedi" }], |
| 17 | + creator: "Code Gems", |
| 18 | + publisher: "Bebedi", |
| 19 | + formatDetection: { |
| 20 | + email: false, |
| 21 | + address: false, |
| 22 | + telephone: false, |
| 23 | + }, |
15 | 24 | icons: { |
16 | 25 | icon: [ |
| 26 | + { url: "/favicon.ico", sizes: "any" }, |
| 27 | + { url: "/icon.png", type: "image/png", sizes: "32x32" }, |
| 28 | + ], |
| 29 | + apple: [{ url: "/apple-touch-icon.png", sizes: "180x180", type: "image/png" }], |
| 30 | + }, |
| 31 | + manifest: "/site.webmanifest", |
| 32 | + openGraph: { |
| 33 | + type: "website", |
| 34 | + url: "https://codegems.xyz", |
| 35 | + title: "Code Gems - Discover Remarkable GitHub Projects", |
| 36 | + description: |
| 37 | + "Explore and share amazing open-source projects on Code Gems, a community-driven platform for developers, designers, and tech enthusiasts.", |
| 38 | + siteName: "Code Gems", |
| 39 | + images: [ |
17 | 40 | { |
18 | | - url: '/icon.png', |
19 | | - sizes: '32x32', |
20 | | - type: 'image/png', |
| 41 | + url: "https://codegems.xyz/icon.png", |
| 42 | + width: 1200, |
| 43 | + height: 630, |
| 44 | + alt: "Code Gems - Discover Remarkable GitHub Projects", |
21 | 45 | }, |
22 | 46 | ], |
23 | 47 | }, |
24 | | - openGraph: { |
25 | | - title: 'Code Gems', |
26 | | - description: 'Welcome to Code Gems - a community-driven platform for discovering and sharing remarkable GitHub projects! The heart of Code Gems is YOU - developers, designers, and tech enthusiasts who know about amazing open-source projects that deserve more visibility.', |
27 | | - type: 'website', |
| 48 | + robots: { |
| 49 | + index: true, |
| 50 | + follow: true, |
| 51 | + googleBot: { |
| 52 | + index: true, |
| 53 | + follow: true, |
| 54 | + "max-video-preview": -1, |
| 55 | + "max-image-preview": "large", |
| 56 | + "max-snippet": -1, |
| 57 | + }, |
28 | 58 | }, |
29 | 59 | } |
30 | 60 |
|
31 | | - |
32 | 61 | export default function RootLayout({ |
33 | 62 | children, |
34 | 63 | }: { |
35 | 64 | children: React.ReactNode |
36 | | -}) { |
| 65 | +}) { |
37 | 66 | return ( |
38 | 67 | <html lang="en"> |
39 | | - |
| 68 | + <head> |
| 69 | + <link rel="canonical" href="https://codegems.xyz" /> |
| 70 | + </head> |
40 | 71 | <body> |
41 | | - <Navbar /> |
42 | | - <SavedProvider> |
43 | | - {children} |
44 | | - </SavedProvider> |
45 | | - <DiscordPromo /> |
46 | | - <Footer /> |
47 | | - <Toaster /> |
48 | | - <Analytics /> |
49 | | - <SpeedInsights/> |
| 72 | + <Navbar /> |
| 73 | + <SavedProvider>{children}</SavedProvider> |
| 74 | + <DiscordPromo /> |
| 75 | + <Footer /> |
| 76 | + <Toaster /> |
| 77 | + <Analytics /> |
| 78 | + <SpeedInsights /> |
50 | 79 | </body> |
51 | 80 | </html> |
52 | 81 | ) |
53 | 82 | } |
| 83 | + |
0 commit comments