mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-13 00:03:57 +02:00
fix(v2): add missed const
This commit is contained in:
parent
51995fa237
commit
6a089ce75c
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ function Layout(props) {
|
||||||
} = props;
|
} = props;
|
||||||
const metaTitle = title ? `${title} | ${siteTitle}` : siteTitle;
|
const metaTitle = title ? `${title} | ${siteTitle}` : siteTitle;
|
||||||
|
|
||||||
|
const metaImage = image || defaultImage;
|
||||||
let metaImageUrl = siteUrl + useBaseUrl(metaImage);
|
let metaImageUrl = siteUrl + useBaseUrl(metaImage);
|
||||||
if (!isInternalUrl(metaImage)) {
|
if (!isInternalUrl(metaImage)) {
|
||||||
metaImageUrl = metaImage;
|
metaImageUrl = metaImage;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue