on master help sign in
Meta: allow disabling fallback image
87b16e5Matilde Park
components/Meta.js+4−2
@@ -1,4 +1,4 @@
1−export default function Meta(post) {
1+export default function Meta(post, disableImage) {
2 const author = post?.extra?.author || "Urbit";
2 const author = post?.extra?.author || "Urbit";
3 const title = post?.title ? `${post.title} - ` : "";
3 const title = post?.title ? `${post.title} - ` : "";
4 const description =
4 const description =
@@ -19,7 +19,9 @@ export default function Meta(post) {
19 <meta name="og:description" content={description} key="description" />
19 <meta name="og:description" content={description} key="description" />
20 <meta name="description" content={description} />
20 <meta name="description" content={description} />
21 <meta name="author" content={author} key="author" />
21 <meta name="author" content={author} key="author" />
22+ {!disableImage && (
22− <meta name="twitter:image" content={image} key="image" />
23+ <meta name="twitter:image" content={image} key="image" />
24+ )}
23 <link
25 <link
24 rel="alternative"
26 rel="alternative"
25 type="application/rss+xml"
27 type="application/rss+xml"