Loading specific data from blogs #1347
BlazWebDevelopment
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have question about loading data, so there I have my file of displaying blogs on /blogs page, and It return me all content for all the blogs...
I am using Astro.
Is there any way I can like load only title, description and image out of it?
const posts = await reader.collections.blogs.all();
{ posts && posts.map((post, index) => { if (index === 0) { return ( <PostCardLarge post={post} showDescription={true} class="md:col-span-2 lg:col-span-3" /> ); } else { return <PostCard post={post} showDescription={false} />; } }) }
Beta Was this translation helpful? Give feedback.
All reactions