[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.

bluesky-home / src / components / Links.astro
576 B 27 lines
1--- 2import { getCollection } from "astro:content"; 3 4const links = await getCollection("links"); 5 6console.log(links); 7--- 8 9<div class="text-white mt-6 px-4 flex flex-col gap-6"> 10 { 11 links[0].data.value.links.map((link: any) => ( 12 <div> 13 <a 14 href={link.url} 15 target="_blank" 16 class="font-medium text-accent-600 dark:text-accent-400" 17 > 18 {link.title ?? link.url} 19 </a> 20 21 <div class="text-base-600 dark:text-base-400 mt-1 text-sm"> 22 {link.description} 23 </div> 24 </div> 25 )) 26 } 27</div>