Self-taught front-end developer and Google Developer Expert from Belgium. After more than a decade in tech, I blog about HTML, CSS and JS with an eye on accessibility and UX.
`,l}async function g(){const e=document.querySelector("[data-bluesky-feed]");if(!e)return;const o=e.dataset.actor||"utilitybend.com",c=parseInt(e.dataset.limit||"10",10),a=e.querySelector(".bluesky-posts");if(a)try{const s=await fetch(`https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed?actor=${encodeURIComponent(o)}&filter=posts_no_replies&limit=${c*2}`);if(!s.ok)return;const r=(await s.json()).feed.filter(t=>!(t.reason||(t.post?.embed?.$type||"").includes("record"))).map(t=>t.post).slice(0,c);a.innerHTML="";for(const t of r)a.appendChild(k(t));r.length===0&&e.closest(".home-bluesky")?.remove()}catch{}}document.addEventListener("DOMContentLoaded",g);