on master help sign in
54 lines 1.8 kB history raw
1export default function Meta(post, disableImage, large = false) {
2 const author = post?.extra?.author || "urbit.org";
3 const title = post?.title ? post.title : "";
4 const description =
5 post?.description || "Urbit is a new kind of computer that you can own completely in ways that matter: networking, identity, & data.";
6 const image =
7 post?.extra?.image ||
8 post?.image ||
9 "https://storage.googleapis.com/media.urbit.org/site/opengraph/sig-white.png";
10 return (
11 <>
12 <link rel="icon" type="image/png" href="/images/favicon.ico" />
13 <link
14 rel="apple-touch-icon"
15 sizes="180x180"
16 href="/images/apple-touch-icon.png"
17 />
18 <link
19 rel="icon"
20 type="image/png"
21 sizes="32x32"
22 href="/images/favicon-32x32.png"
23 />
24 <link
25 rel="icon"
26 type="image/png"
27 sizes="16x16"
28 href="/images/favicon-16x16.png"
29 />
30 <link rel="manifest" href="/images/site.webmanifest" />
32 <meta
33 name="twitter:card"
34 content={large ? "summary_large_image" : "summary"}
35 key="twitter-card"
36 />
37 <meta name="twitter:site" content="@urbit" key="twitter-site" />
38 <meta name="twitter:creator" content="@urbit" key="twitter-creator" />
39 <meta name="og:title" content={title} key="title" />
40 <meta name="og:description" content={description} key="description" />
41 <meta name="description" content={description} />
42 <meta name="author" content={author} key="author" />
43 {!disableImage && (
44 <meta name="twitter:image" content={image} key="image" />
45 )}
46 <link
47 rel="alternative"
48 type="application/rss+xml"
49 title="RSS"
50 href="/rss.xml"
51 />
52 </>
53 );