From 851836aadab979eaeb71181213aa0172204584f7 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Sat, 15 Jul 2023 15:08:49 +0200 Subject: [PATCH] feat: make button customizable in projects --- src/config.ts | 8 ++++++++ src/pages/projects.astro | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index fbf60f7..11f4788 100644 --- a/src/config.ts +++ b/src/config.ts @@ -153,6 +153,10 @@ export const PROJECTS = [ name: "links", link: "https://github.com/xHyroM/links", desc: "Modern and simple link tree. Built on top of Astro and TailwindCSS. Using Cloudflare Pages.", + button: { + name: "Goto", + link: "https://links.xhyrom.dev", + }, }, { name: "lsx", @@ -203,6 +207,10 @@ export const PROJECTS = [ name: string; link: string; desc: string; + button?: { + name: string; + link: string; + }; stats?: { forks: number; stars: number; diff --git a/src/pages/projects.astro b/src/pages/projects.astro index 7fa9762..b1ec7ba 100644 --- a/src/pages/projects.astro +++ b/src/pages/projects.astro @@ -97,8 +97,8 @@ PROJECTS.sort((a, b) => a.name.localeCompare(b.name)); iconClass="ml-2 mt-[1px] h-[23px] w-5" />