From 3df7e1b43204e1db968186268b63c188efa58954 Mon Sep 17 00:00:00 2001 From: Oliver Bryan <04oliverbryan@gmail.com> Date: Sun, 28 Sep 2025 20:56:36 +0100 Subject: [PATCH] added "url" to metadata and "try" link on project page --- src/components/ProjectPage.astro | 32 +++++++++++++++++++++++++++++- src/pages/projects/wiskatron.astro | 4 ++-- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/components/ProjectPage.astro b/src/components/ProjectPage.astro index 5f98af05..fd2c0508 100644 --- a/src/components/ProjectPage.astro +++ b/src/components/ProjectPage.astro @@ -8,6 +8,7 @@ export interface Props { date: string; slug: string; image?: string | null; + url?: string; hidden: boolean; }; } @@ -15,9 +16,25 @@ export interface Props { const { metadata } = Astro.props; --- + +
-

+

{metadata.title}

@@ -33,6 +50,19 @@ const { metadata } = Astro.props; ) } + { + metadata.url ? ( + + Try {metadata.title} + + ) : null + } +

{metadata.date}

diff --git a/src/pages/projects/wiskatron.astro b/src/pages/projects/wiskatron.astro index 9aa82999..dfe325dc 100644 --- a/src/pages/projects/wiskatron.astro +++ b/src/pages/projects/wiskatron.astro @@ -2,12 +2,12 @@ import ProjectPage from "../../components/ProjectPage.astro"; export const metadata = { - title: "wiskatron", + title: "Wiskatron", description: "Spotify listening activity with dynamic visuals", date: "February 2024", slug: "wiskatron", - // image: null, image: "/wiskatron-icon.svg", + url: "https://wiskatron.oliverbryan.com", hidden: false, }; ---