From e9d1191ec117a4ff1e234f91f05e486d9b492d32 Mon Sep 17 00:00:00 2001 From: Fluffy Date: Fri, 24 May 2024 14:35:56 +0100 Subject: [PATCH] Next and previous buttons for posts and projects Sort connections by date published Move some styling to SCSS files --- src/layouts/Markdown.astro | 27 ++++-------- src/pages/index.astro | 33 ++++----------- src/pages/leg.astro | 6 +-- src/pages/posts/[...slug].astro | 24 ++++++----- src/pages/posts/index.astro | 66 ++++++++++++++++++++++++++---- src/pages/projects/[...slug].astro | 27 ++++++------ src/pages/projects/index.astro | 15 +------ src/styles/_pill_list.scss | 11 +++++ src/styles/_project_list.scss | 8 ++++ src/styles/styles.scss | 2 + src/utils.ts | 11 +++++ 11 files changed, 134 insertions(+), 96 deletions(-) create mode 100644 src/styles/_pill_list.scss create mode 100644 src/styles/_project_list.scss create mode 100644 src/utils.ts diff --git a/src/layouts/Markdown.astro b/src/layouts/Markdown.astro index 97703e8..454ff4a 100644 --- a/src/layouts/Markdown.astro +++ b/src/layouts/Markdown.astro @@ -3,7 +3,7 @@ interface Props { post: any, } -const { post } = Astro.props; +const { post, prev, next, base } = Astro.props; const { Content } = await post.render(); --- @@ -12,7 +12,7 @@ const { Content } = await post.render();

{post.data.title}

{post.data.description}

-