Skip to content

Commit

Permalink
Un-nest <Head> tags. (#6327)
Browse files Browse the repository at this point in the history
  • Loading branch information
bladey authored Aug 16, 2021
1 parent c1df1e5 commit 4427bbc
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions docs/components/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function OpenGraph({
ogImage = `${siteUrl}/og-image-landscape.png`;
}
return (
<Fragment>
<Head>
<title>{title}</title>
<meta name="description" content={description} />
<meta key="og:site_name" property="og:site_name" content={title} />
Expand All @@ -53,7 +53,7 @@ function OpenGraph({
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={`${ogImage}`} />
</Fragment>
</Head>
);
}

Expand Down Expand Up @@ -85,9 +85,7 @@ export function DocsPage({

return (
<Fragment>
<Head>
<OpenGraph title={metaTitle} description={description} ogImage={ogImage} />
</Head>
<OpenGraph title={metaTitle} description={description} ogImage={ogImage} />
<div
css={{
gridArea: 'main',
Expand Down Expand Up @@ -148,9 +146,7 @@ export function Page({
const metaTitle = title ? `${title} - Keystone 6` : `Keystone 6`;
return (
<Fragment>
<Head>
<OpenGraph title={metaTitle} description={description} ogImage={ogImage} />
</Head>
<OpenGraph title={metaTitle} description={description} ogImage={ogImage} />
<div
css={{
gridArea: 'main',
Expand Down

1 comment on commit 4427bbc

@vercel
Copy link

@vercel vercel bot commented on 4427bbc Aug 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.