Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena authored Apr 17, 2023
1 parent 66c89bd commit 13d71ae
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions packages/docusaurus-theme-classic/src/theme/SiteMetadata/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,21 @@ function AlternateLangHeaders(): JSX.Element {
return (
<Head>
{Object.entries(localeConfigs).map(([locale, {htmlLang}]) => (
<>
<link
key={locale}
rel="alternate"
href={alternatePageUtils.createUrl({
locale,
fullyQualified: true,
})}
hrefLang={htmlLang}
/>

<meta property="og:locale:alternate" content={locale} />
</>
<>
<link
key={locale}
rel="alternate"
href={alternatePageUtils.createUrl({
locale,
fullyQualified: true,
})}
hrefLang={htmlLang}
/>
<meta property="og:locale:alternate" content={locale} />
</>
))}

<meta property="og:locale" content={defaultLocale} />
<meta property="og:locale" content={defaultLocale} />

<link
rel="alternate"
Expand Down Expand Up @@ -129,4 +128,4 @@ export default function SiteMetadata(): JSX.Element {
</Head>
</>
);
}
}

0 comments on commit 13d71ae

Please sign in to comment.