writed project pages content
This commit is contained in:
@@ -13,7 +13,7 @@ type props = {
|
||||
|
||||
export default async function Home({ params }: props) {
|
||||
const { locale } = await params;
|
||||
const projects = getAllProjects();
|
||||
const projects = getAllProjects().filter((item) => item.ready);
|
||||
|
||||
return (
|
||||
<main className=" bg-brand-beige text-brand-black flex flex-col items-center justify-center">
|
||||
|
||||
@@ -30,12 +30,13 @@ export default async function ProjectPage({ params }: props) {
|
||||
}
|
||||
|
||||
const otherProjects = getAllProjects()
|
||||
.filter((item: any) => item.slug !== slug)
|
||||
.filter((item: any) => item.slug !== slug && item.ready)
|
||||
.slice(0, 2)
|
||||
.map((item: any) => ({
|
||||
slug: item.slug,
|
||||
title: item.title,
|
||||
subtitle: item.subtitle,
|
||||
description: item.description,
|
||||
cover: item.cover
|
||||
}));
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user