on master help sign in
group: test group cards
671bbe3Matilde Park
pages/group/[[...group]].js+24−1
@@ -17,12 +17,35 @@ const GroupPage = ({ data, markdown, params }) => {
17 if (!ob.isValidPatp(group[0])) {
17 if (!ob.isValidPatp(group[0])) {
18 return <ErrorPage />;
18 return <ErrorPage />;
19 }
19 }
20+ const image = `https://urbit-id-og-cards-ltjw3771z-urbit.vercel.app/${
21+ data.title
22+ }?images=${
23+ data.image ? data.image : "https://media.urbit.org/logo/urbit-logo-card.png"
24+ }`;
20
25
21 return (
26 return (
22 <Container>
27 <Container>
23 <Head>
28 <Head>
24 <title>{data.title} • Groups • urbit.org</title>
29 <title>{data.title} • Groups • urbit.org</title>
25− {Meta(data)}
30+ <link rel="icon" type="image/png" href="/images/favicon.ico" />
31+ <meta
32+ name="twitter:card"
33+ content="summary_large_image"
34+ key="twitter-card"
35+ />
36+ <meta
37+ name="og:title"
38+ content={`${data.title} • Groups • urbit.org`}
39+ key="title"
40+ />
41+ <meta
42+ name="og:description"
43+ content={
44+ data?.description || "View more about this group on urbit.org."
45+ }
46+ key="description"
47+ />
48+ <meta property="twitter:image" content={image} key="image" />
26 </Head>
49 </Head>
27 <SingleColumn>
50 <SingleColumn>
28 <Section className="space-y-12" narrow>
51 <Section className="space-y-12" narrow>