diff --git a/src/pages/index.astro b/src/pages/index.astro index efb0aee4..8b5fe398 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -87,35 +87,36 @@ const posts = (await getCollection("posts")).sort(function ( -
+
-

Latest posts:

- - See all posts - +

Latest posts:

+ + See all posts +
- { - posts.slice(0, 4).map((post: any) => ( -
-

{post.data.title}

-

- {post.data.publishedAt.toLocaleDateString("en-us", { - year: "numeric", - month: "short", - day: "numeric", - })} -

-

- {post.data.description} - - Read post - -

- )) - } -
- } + { + posts.slice(0, 4).map((post: any) => ( +
+

{post.data.title}

+

+ {post.data.publishedAt.toLocaleDateString("en-us", { + year: "numeric", + month: "short", + day: "numeric", + })} +

+

+ {post.data.description} + + Read post + +

+
+ )) + } + +