Skip to content

Commit

Permalink
add seo
Browse files Browse the repository at this point in the history
  • Loading branch information
thecryptodiver committed Jan 22, 2022
1 parent 297d9eb commit 9114dd3
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"date-fns": "2.16.1",
"gray-matter": "4.0.2",
"next": "latest",
"next-seo": "^4.29.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"remark": "13.0.0",
Expand Down
32 changes: 31 additions & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
import { Fragment } from 'react';
import { DefaultSeo } from 'next-seo';
import '../assets/styles/index.css';

export default function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />;
return (
<Fragment>
<DefaultSeo
title="Ground Zero"
description="Learn basics of the crypto ecosystem for free!"
openGraph={{
type: 'website',
locale: 'en_IE',
url: 'https://groundzero.superteam.fun/',
site_name: 'Ground Zero',
images: [
{
url: '/images/bg-image.jpeg',
width: 800,
height: 600,
alt: 'Ground Zero',
type: 'image/jpeg',
}
]
}}
twitter={{
handle: '@SuperteamDAO',
site: '@SuperteamDAO',
cardType: 'summary_large_image',
}}
/>
<Component {...pageProps} />
</Fragment>
);
}
Binary file added public/images/bg-image.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 9114dd3

@vercel
Copy link

@vercel vercel bot commented on 9114dd3 Jan 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.