Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/app/projects/[slug]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ import projects from '@/helper/projects';

export async function generateStaticParams() {
return projects
.filter((p) => p.slug)
.map((product) => ({
slug: product.slug,
}));
.filter((p) => p?.slug && p.slug !== "undefined")
.map((p) => ({
slug: p.slug,
}));
}

export async function generateMetadata({ params }) {
const product = projects.find((p) => p.slug === params.slug);
const product = projects.find((p) => p?.slug === params?.slug);
if (!product) {
return {
title: 'Project Not Found',
Expand Down
25 changes: 17 additions & 8 deletions src/helper/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ const projects = [
discordLink: 'https://discord.gg/xnmAPS7zqB',
},
{
name: 'Agora Blockchain',

slug: 'agora-blockchain',
name: 'Agora Blockchain',
description:
'There isn’t just one voting algorithm, there’s hundreds. Therefore, we developed Agora to allow for democratic elections using any algorithm.',
link: {
Expand All @@ -292,7 +294,8 @@ const projects = [
category: 'Ongoing'
},
{
name: 'EduAid',
slug: 'eduaid',
name: 'EduAid',
description:
'An online tool that can generate short quizzes on input educational content can be of great use to teachers and students alike as it can help retain important information, frame questions and quickly revise large chunks of content.',
link: { href: 'https://github.com/AOSSIE-Org/EduAid', label: 'EduAid' },
Expand All @@ -301,16 +304,19 @@ const projects = [
category: 'Ongoing'
},
{
name: 'OpenChat',
slug: 'openchat',
name: 'OpenChat',
description:
'a decentralised platform for secure and private messaging and file sharing built on top of blockchain',
link: { href: '#', label: 'OpenChat' },
logo: DefaultLogo,
status: 'ongoing',
category: 'Ongoing'
},
{
name: 'Resonate',

{
slug: 'resonate',
name: 'Resonate',
description:
'With the rising popularity of social voice platforms such as Clubhouse, it is high time for an Open Source alternative. A platform like this would not only enhance credibility within the open-source community but also attract more users and foster growth. ',
link: { href: 'https://github.com/AOSSIE-Org/Resonate', label: 'Resonate' },
Expand All @@ -319,16 +325,19 @@ const projects = [
category: 'Ongoing'
},
{
name: 'Monumento',
slug: 'monumento',
name: 'Monumento',
description:
'Monumento is an AR-integrated social app that transforms how you connect with the world’s most iconic landmarks. Through Monumento, you can check in to popular monuments, explore famous sites, and discover new people, all within a social platform.',
link: { href: 'https://github.com/AOSSIE-Org/Monumento', label: 'Monumento' },
logo: MonumentoLogo,
status: 'ongoing',
category: 'Ongoing'
},
{
name: 'Social Street Smart',

{
slug: 'social-street-smart',
name: 'Social Street Smart',
description:
'With the adevent of Internet, the problems faced by the people have also grown. These include abusive languages.',
link: {
Expand Down