Skip to content

Commit 8b28cd8

Browse files
committed
Add Meta component
Signed-off-by: Kai Devrim <[email protected]>
1 parent 0eccfa0 commit 8b28cd8

File tree

2 files changed

+60
-50
lines changed

2 files changed

+60
-50
lines changed

components/meta/meta.tsx

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import Head from "next/head";
2+
3+
export const Meta = () => {
4+
return (
5+
<Head>
6+
<title>Kai&apos;s Wacky Website</title>
7+
<meta
8+
name="description"
9+
content="Part-Time High School Student, Part-Time Computer Wizard"
10+
/>
11+
<link rel="icon" type="image/jpg" href="https://devrim.tech/Kai.jpg" />
12+
<meta httpEquiv="X-Clacks-Overhead" content="GNU Terry Pratchett" />
13+
<title>Kai Devrim</title>
14+
<meta
15+
name="keywords"
16+
content="kai, kai devrim, kai mccormick, devrim, devrimkai, devrim kai, kai devrim mccormick, kai the penguin, penguin kai, penguinkai"
17+
/>
18+
<meta name="robots" content="index, follow" />
19+
<meta httpEquiv="Content-Type" content="text/html; charset=utf-8" />
20+
<meta name="language" content="English" />
21+
<meta name="author" content="Kai Devrim" />
22+
<meta name="title" content="Kai Devrim" />
23+
<meta
24+
name="description"
25+
content="Part-Time High School Student, Part-Time Computer Wizard"
26+
/>
27+
28+
<meta itemProp="name" content="Kai Devrim" />
29+
<meta
30+
itemProp="description"
31+
content="Part-Time High School Student, Part-Time Computer Wizard"
32+
/>
33+
<meta itemProp="image" content="https://devrim.tech/meta.png" />
34+
35+
<meta property="og:type" content="website" />
36+
<meta property="og:url" content="https://devrim.tech/" />
37+
<meta property="og:title" content="Kai Devrim" />
38+
<meta
39+
property="og:description"
40+
content="Part-Time High School Student, Part-Time Computer Wizard"
41+
/>
42+
<meta property="og:image" content="https://devrim.tech/meta.png" />
43+
44+
<meta name="twitter:card" content="summary_large_image" />
45+
<meta property="twitter:url" content="https://devrim.tech/" />
46+
<meta property="twitter:title" content="Kai Devrim" />
47+
<meta
48+
property="twitter:description"
49+
content="Part-Time High School Student, Part-Time Computer Wizard"
50+
/>
51+
<meta name="twitter:image" content="https://devrim.tech/meta.png" />
52+
</Head>
53+
);
54+
};
55+
56+
export default Meta;

pages/_app.tsx

Lines changed: 4 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,13 @@ import "../styles/globals.css";
22
import "../styles/prism-lucario.css";
33
import type { AppProps } from "next/app";
44
import NavBar from "../components/navbar/navbar";
5-
import Head from "next/head";
5+
import Meta from "../components/meta/meta";
66
function MyApp({ Component, pageProps }: AppProps) {
77
return (
88
<>
9-
<Head>
10-
<title>Kai&apos;s Wacky Website</title>
11-
<meta
12-
name="description"
13-
content="Part-Time High School Student, Part-Time Computer Wizard"
14-
/>
15-
<link rel="icon" type="image/jpg" href="/Kai.jpg" />
16-
<meta httpEquiv="X-Clacks-Overhead" content="GNU Terry Pratchett" />
17-
<title>Kai Devrim</title>
18-
<meta
19-
name="keywords"
20-
content="kai, kai devrim, kai mccormick, devrim, devrimkai, devrim kai, kai devrim mccormick, kai the penguin, penguin kai, penguinkai"
21-
/>
22-
<meta name="robots" content="index, follow" />
23-
<meta httpEquiv="Content-Type" content="text/html; charset=utf-8" />
24-
<meta name="language" content="English" />
25-
<meta name="author" content="Kai Devrim" />
26-
<meta name="title" content="Kai Devrim" />
27-
<meta
28-
name="description"
29-
content="Part-Time High School Student, Part-Time Computer Wizard"
30-
/>
31-
32-
<meta itemProp="name" content="Kai Devrim" />
33-
<meta
34-
itemProp="description"
35-
content="Part-Time High School Student, Part-Time Computer Wizard"
36-
/>
37-
<meta itemProp="image" content="https://devrim.tech/meta.png" />
38-
39-
<meta property="og:type" content="website" />
40-
<meta property="og:url" content="https://devrim.tech/" />
41-
<meta property="og:title" content="Kai Devrim" />
42-
<meta
43-
property="og:description"
44-
content="Part-Time High School Student, Part-Time Computer Wizard"
45-
/>
46-
<meta property="og:image" content="https://devrim.tech/meta.png" />
47-
48-
<meta name="twitter:card" content="summary_large_image" />
49-
<meta property="twitter:url" content="https://devrim.tech/" />
50-
<meta property="twitter:title" content="Kai Devrim" />
51-
<meta
52-
property="twitter:description"
53-
content="Part-Time High School Student, Part-Time Computer Wizard"
54-
/>
55-
<meta name="twitter:image" content="https://devrim.tech/meta.png" />
56-
</Head>
57-
<NavBar /> <Component {...pageProps} />
9+
<Meta />
10+
<NavBar />
11+
<Component {...pageProps} />
5812
</>
5913
);
6014
}

0 commit comments

Comments
 (0)