diff options
Diffstat (limited to 'examples/blog/src/pages/blog.astro')
-rw-r--r-- | examples/blog/src/pages/blog.astro | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/examples/blog/src/pages/blog.astro b/examples/blog/src/pages/blog.astro index c50cc0528..cedf505b0 100644 --- a/examples/blog/src/pages/blog.astro +++ b/examples/blog/src/pages/blog.astro @@ -37,18 +37,20 @@ const posts = (await Astro.glob('./blog/*.{md,mdx}')).sort( <main> <section> <ul> - {posts.map((post) => ( - <li> - <time datetime={post.frontmatter.pubDate}> - {new Date(post.frontmatter.pubDate).toLocaleDateString('en-us', { - year: 'numeric', - month: 'short', - day: 'numeric', - })} - </time> - <a href={post.url}>{post.frontmatter.title}</a> - </li> - ))} + { + posts.map((post) => ( + <li> + <time datetime={post.frontmatter.pubDate}> + {new Date(post.frontmatter.pubDate).toLocaleDateString('en-us', { + year: 'numeric', + month: 'short', + day: 'numeric', + })} + </time> + <a href={post.url}>{post.frontmatter.title}</a> + </li> + )) + } </ul> </section> </main> |