From ceecc3b8a8f80f563c4356a17cd295cb4ebf0c36 Mon Sep 17 00:00:00 2001 From: George Baskerville <148500997+the-square-pixel@users.noreply.github.com> Date: Sat, 25 May 2024 00:56:32 +0100 Subject: [PATCH] remove stray curly brace --- src/pages/index.astro | 53 ++++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 26 deletions(-) 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 + +

+
+ )) + } + +