From 56aec83d11725fa1d816105ccb5f337757e257b2 Mon Sep 17 00:00:00 2001 From: Lim Ding Wen Date: Fri, 2 Aug 2024 00:14:50 +0800 Subject: [PATCH] Add GitHub link --- site/.env.example | 3 ++- site/src/app/layout.tsx | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/site/.env.example b/site/.env.example index 264d030..758e94d 100644 --- a/site/.env.example +++ b/site/.env.example @@ -1,4 +1,5 @@ NEXT_PUBLIC_SUPABASE_URL="TODO" NEXT_PUBLIC_SUPABASE_ANON_KEY="TODO" NEXT_PUBLIC_SITE_NAME="Parliament Summary" -NEXT_PUBLIC_ITEMS_PER_PAGE="20" \ No newline at end of file +NEXT_PUBLIC_ITEMS_PER_PAGE="20" +NEXT_PUBLIC_REPOSITORY_URL="https://github.com/limdingwen/parliament-summary" \ No newline at end of file diff --git a/site/src/app/layout.tsx b/site/src/app/layout.tsx index 3b94061..d972046 100644 --- a/site/src/app/layout.tsx +++ b/site/src/app/layout.tsx @@ -26,6 +26,10 @@ export default function RootLayout({ const links = [ { name: "Bills", href: "/bills" }, { name: "Debates", href: "/debates" }, + { + name: "GitHub", + href: process.env.NEXT_PUBLIC_REPOSITORY_URL!, + }, ]; // noinspection HtmlRequiredTitleElement