From e601bd786dbb639b7b6f9f5f0854250d0ebdd070 Mon Sep 17 00:00:00 2001 From: Manuel Ernesto Garcia Date: Sun, 25 Sep 2022 22:40:31 -0400 Subject: [PATCH] improving index page --- src/components/SideBar.astro | 2 +- src/config.ts | 2 +- src/pages/index.astro | 29 +++++++++++++++++++++++------ 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/components/SideBar.astro b/src/components/SideBar.astro index a6a4ef3..9b0e9bf 100644 --- a/src/components/SideBar.astro +++ b/src/components/SideBar.astro @@ -73,7 +73,7 @@ - + new Date(b.frontmatter.pubDate).valueOf() - new Date(a.frontmatter.pubDate).valueOf() +); + +const last_posts = posts.slice(0, 3); --- -
+