mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-09 14:51:30 +01:00
46 lines
1.5 KiB
TypeScript
46 lines
1.5 KiB
TypeScript
import NextHead from 'next/head'
|
|
|
|
interface HeadProps {
|
|
title?: string
|
|
image?: string
|
|
description?: string
|
|
url?: string
|
|
}
|
|
|
|
export const Head: React.FC<HeadProps> = (props) => {
|
|
const {
|
|
title = 'Théo LUDWIG',
|
|
image = 'https://theoludwig.fr/images/icon-96x96.png',
|
|
description = 'Théo LUDWIG - Developer Full Stack • Passionate about High-Tech',
|
|
url = 'https://theoludwig.fr/'
|
|
} = props
|
|
|
|
return (
|
|
<NextHead>
|
|
<title>{title}</title>
|
|
<link rel='icon' type='image/png' href={image} />
|
|
|
|
{/* Meta Tag */}
|
|
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
|
|
<meta name='description' content={description} />
|
|
<meta name='Language' content='fr-FR, en-US' />
|
|
<meta name='theme-color' content='#ffd800' />
|
|
|
|
{/* Open Graph Metadata */}
|
|
<meta property='og:title' content={title} />
|
|
<meta property='og:type' content='website' />
|
|
<meta property='og:url' content={url} />
|
|
<meta property='og:image' content={image} />
|
|
<meta property='og:description' content={description} />
|
|
<meta property='og:locale' content='fr-FR, en-US' />
|
|
<meta property='og:site_name' content={title} />
|
|
|
|
{/* Twitter card Metadata */}
|
|
<meta name='twitter:card' content='summary' />
|
|
<meta name='twitter:description' content={description} />
|
|
<meta name='twitter:title' content={title} />
|
|
<meta name='twitter:image' content={image} />
|
|
</NextHead>
|
|
)
|
|
}
|