From 637f6e8b73f4d0f53ac4d137c00a87a955082ce4 Mon Sep 17 00:00:00 2001 From: Henrique Ramos Date: Sat, 14 Dec 2024 21:01:38 -0300 Subject: [PATCH] chore: update index page to list all slides --- src/layouts/BaseLayout.astro | 2 +- src/pages/index.astro | 60 ++++++++++++++++++++++++++++++++---- 2 files changed, 55 insertions(+), 7 deletions(-) diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index d49f90d..d744f80 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -13,7 +13,7 @@ const { title } = Astro.props; - + + c1.data.title > c2.data.title ? -1 : 1 +); --- - - + +

Slides

+

Here you can find a list of all available slides:

+ { + slides.map((slide) => ( + +

{slide.data.title}

+

{slide.data.description}

+ {slide.data.publishedAt.toLocaleDateString()} +
+ )) + }
+ +