feat: use isBlogPostPage

This commit is contained in:
John Reilly 2021-08-19 17:49:09 +01:00
parent 84bf24c69b
commit 88e6d74609

View File

@ -129,14 +129,18 @@ function BlogPostItem(props: Props): JSX.Element {
return (
<>
<Seo {...{keywords, image}}>
<meta property="og:type" content="article" />
<meta property="article:published_time" content={date} />
{authorURL && <meta property="article:author" content={authorURL} />}
{frontMatter.tags && (
<meta property="article:tag" content={frontMatter.tags.join(',')} />
)}
</Seo>
{isBlogPostPage ? (
<Seo {...{keywords, image}}>
<meta property="og:type" content="article" />
<meta property="article:published_time" content={date} />
{authorURL && <meta property="article:author" content={authorURL} />}
{frontMatter.tags && (
<meta property="article:tag" content={frontMatter.tags.join(',')} />
)}
</Seo>
) : (
<Seo {...{keywords, image}} />
)}
<article
className={!isBlogPostPage ? 'margin-bottom--xl' : undefined}