diff --git a/src/components/cards/LargeBlogLeftCard.astro b/src/components/cards/LargeBlogLeftCard.astro index 3d24464..74b6919 100644 --- a/src/components/cards/LargeBlogLeftCard.astro +++ b/src/components/cards/LargeBlogLeftCard.astro @@ -15,15 +15,15 @@ interface Props { const { title, subTitle, url, img, imgAlt } = Astro.props; --- -
+
{imgAlt} +
- {single ? ( + {!imgTwo ? (
{imgOneAlt}
) : ( -
- {imgOneAlt} - {imgTwoAlt} -
+ <> +
+ {imgOneAlt} +
+ + )}
diff --git a/src/components/sections/SelectedPostsSection.astro b/src/components/sections/SelectedPostsSection.astro index 8011dbf..75de08b 100644 --- a/src/components/sections/SelectedPostsSection.astro +++ b/src/components/sections/SelectedPostsSection.astro @@ -11,7 +11,7 @@ interface Props { const { posts } = Astro.props; --- -
+
{posts.map((post, index) => index % 2 === 0 ? ( p.selected).slice(0, 3); +const selectedPosts: Post[] = posts.filter((p) => p.selected).slice(0, 2); const recentPosts: Post[] = posts.filter( (p) => !selectedPosts.some((selected) => selected.slug === p.slug) ).slice(0, 9);