-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.js
More file actions
72 lines (67 loc) · 1.53 KB
/
layout.js
File metadata and controls
72 lines (67 loc) · 1.53 KB
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
import "./globals.css";
import { Lato, Merriweather } from "next/font/google";
import { siteData } from "../siteData";
import { SiteChrome } from "../components/SiteChrome";
const siteUrl = "https://vmittal27.github.io";
const description =
"Viresh Mittal personal website.";
const lato = Lato({
subsets: ["latin"],
weight: ["400", "700"],
variable: "--font-body",
display: "swap",
});
const merriweather = Merriweather({
subsets: ["latin"],
weight: ["400", "700"],
variable: "--font-heading",
display: "swap",
});
export const metadata = {
metadataBase: new URL(siteUrl),
title: {
default: "Viresh Mittal",
template: "%s | Viresh Mittal",
},
description,
authors: [{ name: "Viresh Mittal" }],
alternates: {
canonical: "/",
},
icons: {
icon: "/favicon.ico",
apple: "/logo192.png",
},
manifest: "/manifest.json",
verification: {
google: "oBABwhRXTTzgdETy2Alyt3p3W0vjRUzf6YDrUpjGFSA",
},
openGraph: {
type: "website",
url: siteUrl,
siteName: "Viresh Mittal",
title: "Viresh Mittal",
description,
images: [
{
url: "/logo512.png",
alt: "Viresh Mittal website logo",
},
],
},
twitter: {
card: "summary",
title: "Viresh Mittal",
description,
images: ["/logo512.png"],
},
};
export default function RootLayout({ children }) {
return (
<html lang="en">
<body className={`${lato.variable} ${merriweather.variable}`}>
<SiteChrome siteData={siteData}>{children}</SiteChrome>
</body>
</html>
);
}