on master help sign in
pages/id: use data.tile for group cards
be7ff1bMatilde Park
pages/ids/[id].js+2−2
@@ -180,7 +180,7 @@ const Creations = ({ id, title, data, type }) => {
180 shortcode={`${id}/${each.slug}`}
180 shortcode={`${id}/${each.slug}`}
181 title={each.title}
181 title={each.title}
182 color={each.bgColor}
182 color={each.bgColor}
183− image={each.image}
183+ image={type === "group" ? each.tile : each.image}
184 />
184 />
185 ))}
185 ))}
186 </div>
186 </div>
@@ -207,7 +207,7 @@ export const getServerSideProps = async ({ params, res }) => {
207 ["title", "slug", "image", "bgColor"],
207 ["title", "slug", "image", "bgColor"],
208 `applications/${params.id}`
208 `applications/${params.id}`
209 );
209 );
210− const groups = getAllPosts(["title", "slug", "image"], `groups/${params.id}`);
210+ const groups = getAllPosts(["title", "slug", "tile"], `groups/${params.id}`);
211
211
212 if (!data.ship && ob.isValidPatp(params.id)) {
212 if (!data.ship && ob.isValidPatp(params.id)) {
213 data = { ship: params.id, description: "An Urbit ID." };
213 data = { ship: params.id, description: "An Urbit ID." };