This commit is contained in:
Travis Fischer
2021-01-17 21:37:43 -05:00
parent 7ed7eff555
commit f7d2f8bc17

View File

@@ -1,7 +1,6 @@
import Head from 'next/head'
import * as React from 'react'
import * as types from 'lib/types'
import { mapImageUrl } from 'lib/map-image-url'
// TODO: remove duplication between PageHead and NotionPage Head
@@ -22,16 +21,8 @@ export const PageHead: React.FC<types.PageProps> = ({ site }) => {
</>
)}
{site?.image && (
<meta property='og:image' content={mapImageUrl(site.image)} />
)}
<meta name='theme-color' content='#EB625A' />
<meta property='og:type' content='website' />
{site?.domain && (
<meta property='og:url' content={`https://${site.domain}`} />
)}
</Head>
)
}