From 44a15873f481609768dffe61e31afc303c3959a6 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Fri, 24 May 2024 19:47:03 +0100 Subject: [PATCH] Import image from path Update page title based on post/project title Use more optimised Image element leg --- src/components/Certificate.astro | 60 +++++++++++++++++++++--------- src/components/Music.astro | 5 ++- src/layouts/Layout.astro | 4 +- src/pages/index.astro | 3 +- src/pages/leg.astro | 3 +- src/pages/posts/[...slug].astro | 2 +- src/pages/posts/index.astro | 3 +- src/pages/projects/[...slug].astro | 2 +- src/pages/projects/index.astro | 3 +- 9 files changed, 60 insertions(+), 25 deletions(-) diff --git a/src/components/Certificate.astro b/src/components/Certificate.astro index 3bd0460..bad2db0 100644 --- a/src/components/Certificate.astro +++ b/src/components/Certificate.astro @@ -3,21 +3,24 @@ const { certificate } = Astro.props; ---
-

{certificate.data.title}

-

{certificate.data.achieved}

-

By: {certificate.data.provider}

+ +
+

{certificate.data.title}

+

{certificate.data.achieved}

+

By: {certificate.data.provider}

- {certificate.data.skills && ( -
    - {certificate.data.skills.map(skill => ( -
  • {skill}
  • - ))} -
- )} + {certificate.data.skills && ( +
    + {certificate.data.skills.map(skill => ( +
  • {skill}
  • + ))} +
+ )} - {certificate.data.link && ( - View - )} + {certificate.data.link && ( + View + )} +