From 6b22d8c653e983fb095511c9a7d3f5bbb6d7f66c Mon Sep 17 00:00:00 2001 From: Shanks0465 Date: Mon, 6 Jan 2025 17:19:56 +0530 Subject: [PATCH] Changed News to Blog --- frontend/src/app/{news => blog}/[article]/page.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) rename frontend/src/app/{news => blog}/[article]/page.tsx (69%) diff --git a/frontend/src/app/news/[article]/page.tsx b/frontend/src/app/blog/[article]/page.tsx similarity index 69% rename from frontend/src/app/news/[article]/page.tsx rename to frontend/src/app/blog/[article]/page.tsx index a79ee8f..56b2c91 100644 --- a/frontend/src/app/news/[article]/page.tsx +++ b/frontend/src/app/blog/[article]/page.tsx @@ -20,9 +20,21 @@ export async function generateStaticParams() { }); }); + params.push({ + article: "indicvoices", + }); + return params; } +const blogIdMap = { + indicvoices: 8, +}; + export default function News({ params }: { params: { article: string } }) { - return ; + if (params.article.includes("indicvoices")) { + return ; + } else { + return ; + } }