Advertisement · 728 × 90

Posts by ibrahim

SQLite

9 months ago 0 0 0 0

thats looks very good 🥳

10 months ago 2 0 0 0

HBD 🥳

11 months ago 3 0 0 0

deno compile 🥳

11 months ago 1 0 0 0

🥳

11 months ago 0 0 0 0

like it 👍

1 year ago 1 0 0 0

street coder okumayı isterim. todo ya eklendi :D

1 year ago 1 0 0 0

Elinize sağlık.

1 year ago 3 0 0 0

congrats 🎉

1 year ago 1 0 0 0

testing on production?

1 year ago 0 0 0 0
Advertisement

www.ibrahimo.dev

1 year ago 0 0 0 0
Save Page Now

Save Page Now

Save Page Now is back online via the Wayback Machine: web.archive.org/save

Web pages archived since October 9 will start being added to the Wayback Machine.

1 year ago 3428 786 38 26
import { authorFeedLoader } from "@ascorbic/bluesky-loader";
  
const posts = defineCollection({
  loader: authorFeedLoader({
    identifier: "mk.gg",
  }),
});

export const collections = { posts };

import { authorFeedLoader } from "@ascorbic/bluesky-loader"; const posts = defineCollection({ loader: authorFeedLoader({ identifier: "mk.gg", }), }); export const collections = { posts };

---
import { getCollection } from "astro:content";
const posts = await getCollection("posts");           
---

<div>
  {
    posts.map(async (post) => {
      const { Content } = await render(post);
      return (
        <section>
          <Content />
          <p>{post.data.likeCount} likes</p>
        </section>
      );
    })
  }
</div>

--- import { getCollection } from "astro:content"; const posts = await getCollection("posts"); --- <div> { posts.map(async (post) => { const { Content } = await render(post); return ( <section> <Content /> <p>{post.data.likeCount} likes</p> </section> ); }) } </div>

Would you like to display your Bluesky posts in your Astro site? I've made an Astro content loader for Bluesky! When you build the site it loads your posts and puts them in a content collection. You can then display them on a page, or use the raw data however you want.

github.com/ascorbic/ast...

1 year ago 381 71 27 5