mirror of
https://github.com/System-End/site.git
synced 2026-04-19 18:35:12 +00:00
* Use ESLint * oops * Ignore ESLint during builds * Disable <Image> rule * Restore quotes and apostrophes
53 lines
1.3 KiB
JavaScript
Executable file
53 lines
1.3 KiB
JavaScript
Executable file
import Document, { Html, Head, Main, NextScript } from 'next/document'
|
|
// import { InitializeColorMode } from 'theme-ui'
|
|
|
|
const org = {
|
|
'@context': 'http://schema.org',
|
|
'@type': 'Organization',
|
|
name: 'Hack Club',
|
|
url: 'https://hackclub.com/',
|
|
logo: 'https://hackclub.com/social.png',
|
|
sameAs: [
|
|
'https://twitter.com/hackclub',
|
|
'https://github.com/hackclub',
|
|
'https://www.instagram.com/starthackclub',
|
|
'https://www.facebook.com/Hack-Club-741805665870458',
|
|
'https://www.youtube.com/channel/UCQzO0jpcRkP-9eWKMpJyB0w'
|
|
],
|
|
contactPoint: [
|
|
{
|
|
'@type': 'ContactPoint',
|
|
email: 'team@hackclub.com',
|
|
contactType: 'customer support',
|
|
url: 'https://hackclub.com/'
|
|
}
|
|
]
|
|
}
|
|
|
|
class MyDocument extends Document {
|
|
static async getInitialProps(ctx) {
|
|
const initialProps = await Document.getInitialProps(ctx)
|
|
return { ...initialProps }
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<Html lang="en">
|
|
<Head>
|
|
<meta name="format-detection" content="telephone=no" />
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(org) }}
|
|
/>
|
|
</Head>
|
|
<body>
|
|
{/* <InitializeColorMode /> */}
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default MyDocument
|