feat: improve layout for single and two images
This commit is contained in:
@@ -11,7 +11,7 @@ interface Props {
|
||||
const { posts } = Astro.props;
|
||||
---
|
||||
|
||||
<section class="smooth-reveal flex flex-col gap-4">
|
||||
<section class="smooth-reveal flex flex-col gap-4 md:mb-20">
|
||||
{posts.map((post, index) => index % 2 === 0 ? (
|
||||
<LargeBlogLeftCard
|
||||
title={post.title}
|
||||
@@ -25,7 +25,6 @@ const { posts } = Astro.props;
|
||||
title={post.title}
|
||||
subTitle={post.description}
|
||||
url={`/blog/${post.slug}`}
|
||||
single={!post.image_second}
|
||||
imgOne={post.image}
|
||||
imgOneAlt={post.image_alt}
|
||||
imgTwo={post?.image_second}
|
||||
|
||||
Reference in New Issue
Block a user