diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 63b1883..043e27a 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -5,12 +5,35 @@ import Default from "@layouts/Default.astro"; // Components import Posts from "@components/blog/posts.astro"; import Heading from "@components/Heading.astro"; +import {BlogPost} from "@sudovanilla/pandora" + +// Get Posts +import { ghostClient } from "@library/ghost"; +const posts = await ghostClient.posts + .browse({ + limit: "all", + }) + .catch(() => {null}) --- -
Loading posts...
+ +
+ { + posts.map((post) => ( + + )) + } +