manifold/web/components/SEO.tsx
James Grugett 85b5ee5cbc
Rename to Manifold Markets! (#19)
* Update logo and about page to manifold

* Change urls, titles / metatags, landing page
2022-01-06 12:48:30 -06:00

41 lines
794 B
TypeScript

import Head from 'next/head'
export function SEO(props: {
title: string
description: string
url?: string
children?: any[]
}) {
const { title, description, url, children } = props
return (
<Head>
<title>{title} | Manifold Markets</title>
<meta
property="og:title"
name="twitter:title"
content={title}
key="title"
/>
<meta name="description" content={description} key="description1" />
<meta
property="og:description"
name="twitter:description"
content={description}
key="description2"
/>
{url && (
<meta
property="og:url"
content={'https://manifold.markets' + url}
key="url"
/>
)}
{children}
</Head>
)
}