Maj taxonomies
Some checks failed
Build and Push App / build (push) Failing after 11m28s

maj url photo
+ page 404
+ gestion programmation d'article
This commit is contained in:
2026-05-03 21:22:12 +02:00
parent 0e72867d4c
commit 5f421b418e
41 changed files with 1946 additions and 735 deletions

View File

@@ -19,7 +19,11 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
OR: [
{ id: id },
{ slug: id }
]
],
publishedAt: {
lte: new Date()
},
status: 'PUBLISHED'
}
});
@@ -46,7 +50,11 @@ export default async function BlogPostPage({ params }: Props) {
OR: [
{ id: id },
{ slug: id }
]
],
publishedAt: {
lte: new Date()
},
status: 'PUBLISHED'
}
});
@@ -102,7 +110,7 @@ export default async function BlogPostPage({ params }: Props) {
</header>
{/* Content */}
<div className="prose prose-lg prose-orange max-w-none text-gray-600 break-words overflow-hidden">
<div className="prose prose-lg prose-orange max-w-none text-gray-600">
<p className="lead text-xl text-gray-500 font-serif italic mb-6 border-b border-gray-100 pb-6">
{post.excerpt}
</p>

View File

@@ -10,6 +10,12 @@ export default async function BlogPage() {
try {
posts = await prisma.blogPost.findMany({
where: {
status: 'PUBLISHED',
publishedAt: {
lte: new Date()
}
},
orderBy: { createdAt: 'desc' }
});
} catch (error) {