Skip to content

Commit e823bb6

Browse files
committed
feat: added basic metadata with OpenGraph protocol
1 parent c82acce commit e823bb6

File tree

3 files changed

+64
-1
lines changed

3 files changed

+64
-1
lines changed

pages/_app.tsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,39 @@ import { config } from '@fortawesome/fontawesome-svg-core'
88
import '@fortawesome/fontawesome-svg-core/styles.css'
99
import '../styles/clown.css'
1010
import Clown from "../components/clown/clown";
11+
import Head from "next/head";
1112
config.autoAddCss = false
1213

1314
function MyApp({Component, pageProps}: AppProps) {
1415
return (
1516
<>
17+
<Head>
18+
<meta charSet="UTF-8"/>
19+
<meta name="keywords" content="unitystation, Space Station 13, SS13, Unity, RPG, Among us" />
20+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
21+
<title key='title'>Unitystation</title>
22+
<meta
23+
key='description'
24+
name="description"
25+
content="Unitystation is a free and open-source multiplayer space station 13 remake built in Unity."
26+
/>
27+
<meta
28+
key='og:title'
29+
property="og:title"
30+
content="Unitystation - The Space Station 13 Remake made in Unity"
31+
/>
32+
<meta
33+
key='og:description'
34+
property="og:description"
35+
content="Unitystation is a free and open-source multiplayer space station 13 remake built in Unity."
36+
/>
37+
<meta
38+
key='og:image'
39+
property="og:image"
40+
content="https://unitystationfile.b-cdn.net/Branding/headerCapsule.png"
41+
/>
42+
<meta key="og:type" property="og:type" content="website"/>
43+
</Head>
1644
<Background>
1745
<Clown></Clown>
1846
<Container>

pages/blog.tsx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import {NextPage} from "next";
2-
import FlexPageContainer from "../components/layout/prefabs/flexPageContainer";
32
import {useEffect, useState} from "react";
43
import Post from "../components/blog/post";
54
import {BlogPostsResponse} from "../types/blogPostsResponse";
5+
import Head from "next/head";
6+
7+
68

79
const Blog: NextPage = () => {
810
const [posts, setPosts] = useState({} as BlogPostsResponse);
@@ -18,6 +20,24 @@ const Blog: NextPage = () => {
1820

1921
return (
2022
<>
23+
<Head>
24+
<title key={'title'}>Unitystation - Blog</title>
25+
<meta
26+
key='description'
27+
name='description'
28+
content='The Unitystation Blog is a place where we post about the development of Unitystation, our community, and other things related to the game!'
29+
/>
30+
<meta
31+
key='og:title'
32+
property='og:title'
33+
content='Unitystation - Blog'
34+
/>
35+
<meta
36+
key='og:description'
37+
property='og:description'
38+
content='The Unitystation Blog is a place where we post about the development of Unitystation, our community, and other things related to the game!'
39+
/>
40+
</Head>
2141
<main className={'pt-8 pb-16 lg:pt-16 lg:pb-24'}>
2242
<div className={'flex px-4 mx-auto max-w-screen-xl '}>
2343
{!loading && <div>

pages/changelog.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import FluidMainContainer from '../components/layout/prefabs/fixedFluidFixed/flu
44
import ChangelogResultsPage from '../components/changelog/changelogResultsPage';
55
import {AllChangesResponse} from '../types/allChangesResponse';
66
import {useEffect, useState} from 'react';
7+
import Head from "next/head";
8+
79

810

911
const initialResponse: AllChangesResponse = {
@@ -41,6 +43,19 @@ const Changelog: NextPage = () => {
4143

4244
return (
4345
<>
46+
<Head>
47+
<title key="title">Unitystation - Changelog</title>
48+
<meta
49+
key="description"
50+
name="description"
51+
content="Find all the changes we have pushed to Unitystation here!"/>
52+
<meta key="og:title" property="og:title" content="Unitystation - Changelog"/>
53+
<meta
54+
key="og:description"
55+
property="og:description"
56+
content="Find all the changes we have pushed to Unitystation here!"/>
57+
<meta key="og:url" property="og:url" content="https://unitystation.org/changelog"/>
58+
</Head>
4459
<FlexPageContainer>
4560
<FluidMainContainer>
4661
<div className={'w-full flex flex-col items-center justify-center'}>

0 commit comments

Comments
 (0)