diff --git a/src/pages/index.astro b/src/pages/index.astro
index 072dfaa..ecea4e0 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -34,45 +34,26 @@ const featuredProjects = sortedProjects.filter(({ data }) => data.featured);
Scroll down for more ⬇️
- {
- featuredProjects.length > 0 && (
- <>
-
- Featured Projects
-
- {featuredProjects.map(({ data }) => (
-
+
+
+
+ {
+ sortedPosts.reduce((acc, { data }) => {
+ // Check if the post meets the conditions (not in the "project" category)
+ if (acc.length < 2 && data.category !== "project") {
+ acc.push(
+
- ))}
-
-
-
- >
- )
- }
-
-
- Recent Posts
-
- {
- sortedPosts.reduce((acc, { data }) => {
- // Check if the post meets the conditions (not in the "project" category)
- if (acc.length < 2 && data.category !== "project") {
- acc.push(
-
- );
+ );
+ }
+ return acc;
+ }, [])
}
- return acc;
- }, [])
- }
-
+
All Posts
@@ -116,7 +97,7 @@ const featuredProjects = sortedProjects.filter(({ data }) => data.featured);
/* ===== Featured & Recent Posts Sections ===== */
#featured,
#recent-posts {
- @apply pb-6 pt-12;
+ @apply pb-2 pt-4;
}
#featured h2,
#recent-posts h2 {