mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-31 23:54:25 +00:00
feat: use isBlogPostPage
This commit is contained in:
parent
84bf24c69b
commit
88e6d74609
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue