maj url photo + page 404 + gestion programmation d'article
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user