[READ-ONLY] Mirror of https://github.com/flo-bit/bluesky-home. flo-bit.dev/bluesky-home/
0

Configure Feed

Select the types of activity you want to include in your feed.

update pds data structure

+8 -11
+4 -4
src/components/Links.astro
··· 8 8 9 9 <div class="text-white mt-6 px-4 flex flex-col gap-6"> 10 10 { 11 - links.map((link) => ( 11 + links[0].data.value.links.map((link: any) => ( 12 12 <div> 13 13 <a 14 - href={link.data.value.url} 14 + href={link.url} 15 15 target="_blank" 16 16 class="font-medium text-accent-600 dark:text-accent-400" 17 17 > 18 - {link.data.value.label ?? link.data.value.url} 18 + {link.title ?? link.url} 19 19 </a> 20 20 21 21 <div class="text-base-600 dark:text-base-400 mt-1 text-sm"> 22 - {link.data.value.description} 22 + {link.description} 23 23 </div> 24 24 </div> 25 25 ))
+1 -4
src/components/Navigation/Navigation.astro
··· 4 4 let { active } = Astro.props; 5 5 --- 6 6 7 - <DesktopNavigation 8 - items={["about", "links", "feed", "blog", "comments"]} 9 - active={active} 10 - /> 7 + <DesktopNavigation items={["about", "links", "feed"]} active={active} />
+3 -3
src/utils/atproto.ts
··· 92 92 fetching: do { 93 93 const data = await listRecords({ 94 94 did, 95 - collection: "link.flo-bit.dev", 95 + collection: "dev.flo-bit.links", 96 96 cursor, 97 97 }); 98 98 ··· 268 268 id: data.uri, 269 269 data: parsed, 270 270 body: parsed.plaintext, 271 - rendered: {html: await marked.parse(data.value.content)}, 271 + rendered: {html: await marked.parse(data.value.about)}, 272 272 }); 273 273 274 274 275 275 } catch (error) { 276 276 logger.error( 277 - `Failed to load Bluesky links. ${(error as Error).message}`, 277 + `Failed to load Bluesky about. ${(error as Error).message}`, 278 278 ); 279 279 } 280 280 },