forked from transitive-bullshit/nextjs-notion-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPageHead.tsx
28 lines (24 loc) · 797 Bytes
/
PageHead.tsx
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
import Head from 'next/head'
import * as React from 'react'
import * as types from 'lib/types'
// TODO: remove duplication between PageHead and NotionPage Head
export const PageHead: React.FC<types.PageProps> = ({ site }) => {
return (
<Head>
<meta charSet='utf-8' />
<meta httpEquiv='Content-Type' content='text/html; charset=utf-8' />
<meta
name='viewport'
content='width=device-width, initial-scale=1, shrink-to-fit=no'
/>
{site?.description && (
<>
<meta name='description' content={site.description} />
<meta property='og:description' content={site.description} />
</>
)}
<meta name='theme-color' content='#EB625A' />
<meta property='og:type' content='website' />
</Head>
)
}