We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c2a566 + a39fb21 commit 56c5696Copy full SHA for 56c5696
src/components/HeadMatter.js
@@ -22,6 +22,8 @@ export const HeadMatter = ({
22
imgUrl = /^http/.test(imgSrc) ? imgSrc : 'https://processing.org/' + imgSrc;
23
}
24
25
+ imgUrl = imgUrl || '/img/banner.png';
26
+
27
const pageUrl = 'https://processing.org/' + location.pathname;
28
return (
29
<Helmet>
@@ -43,7 +45,7 @@ export const HeadMatter = ({
43
45
<meta property="og:type" content={ogType || 'website'} />
44
46
<meta property="og:title" content={title} />
47
<meta property="og:description" content={shortDescription} />
- {img && <meta property="og:image" content={imgUrl} />}
48
+ {imgUrl && <meta property="og:image" content={imgUrl} />}
49
</Helmet>
50
);
51
};
static/img/banner.png
296 KB
0 commit comments