mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 15:09:47 +00:00
👇
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user