Skip to content

Commit

Permalink
Merge pull request #98 from AI4Bharat/blog-enable
Browse files Browse the repository at this point in the history
Changed News to Blog
  • Loading branch information
Shanks0465 authored Jan 6, 2025
2 parents d222522 + 6b22d8c commit a48eab4
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <ArticleComponent slug={params.article} />;
if (params.article.includes("indicvoices")) {
return <ArticleComponent slug={"8"} />;
} else {
return <ArticleComponent slug={params.article} />;
}
}

0 comments on commit a48eab4

Please sign in to comment.