mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 09:57:03 +02:00
fix(v2): fix incorrect keywords meta tag (#1863)
This commit is contained in:
parent
954f1a6827
commit
ee936f62b5
2 changed files with 4 additions and 4 deletions
|
@ -53,6 +53,9 @@ function DocItem(props) {
|
|||
{description && (
|
||||
<meta property="og:description" content={description} />
|
||||
)}
|
||||
{keywords && keywords.length && (
|
||||
<meta name="keywords" content={keywords.join(',')} />
|
||||
)}
|
||||
{metaImage && (
|
||||
<meta
|
||||
property="og:image"
|
||||
|
@ -69,9 +72,6 @@ function DocItem(props) {
|
|||
<meta name="twitter:image:alt" content={`Image for ${title}`} />
|
||||
)}
|
||||
{permalink && <meta property="og:url" content={siteUrl + permalink} />}
|
||||
{keywords && keywords.length && (
|
||||
<meta property="keywords" content={keywords.join(',')} />
|
||||
)}
|
||||
</Head>
|
||||
<div className="padding-vert--lg">
|
||||
<div className="container">
|
||||
|
|
|
@ -48,7 +48,7 @@ function Layout(props) {
|
|||
<meta property="og:description" content={description} />
|
||||
)}
|
||||
{keywords && keywords.length && (
|
||||
<meta property="keywords" content={keywords.join(',')} />
|
||||
<meta name="keywords" content={keywords.join(',')} />
|
||||
)}
|
||||
{metaImage && (
|
||||
<meta
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue