import Link from 'next/link' import { formatDate, getBlogPosts } from '@/app/blog/utils' export function BlogPosts() { let allBlogs = getBlogPosts().sort((a, b) => { if ( new Date(a.metadata.publishedAt) > new Date(b.metadata.publishedAt) ) { return -1 } return 1 }) return ( <>
Nos dernières actualités !

Postes proposés

{/*
View More Articles
*/}
{/*
*/}
{allBlogs.map((post) => (

{post.metadata.title}

{/* John Doe */} {/* */} {formatDate(post.metadata.publishedAt, false)}

{post.metadata.description}

))} {/*

Morbi scelerisque nulla et lectus dignissim eleifend nulla eu nulla a metus

John Doe 24 Jan, 2021

Quisque id sagittis turpis. Nulla sollicitudin rutrum eros eu dictum...

Morbi scelerisque nulla et lectus dignissim eleifend nulla eu nulla a metus

John Doe 24 Jan, 2021

Quisque id sagittis turpis. Nulla sollicitudin rutrum eros eu dictum...

Morbi scelerisque nulla et lectus dignissim eleifend nulla eu nulla a metus

John Doe 24 Jan, 2021

Quisque id sagittis turpis. Nulla sollicitudin rutrum eros eu dictum...

Morbi scelerisque nulla et lectus dignissim eleifend nulla eu nulla a metus

John Doe 24 Jan, 2021

Quisque id sagittis turpis. Nulla sollicitudin rutrum eros eu dictum...

Morbi scelerisque nulla et lectus dignissim eleifend nulla eu nulla a metus

John Doe 24 Jan, 2021

Quisque id sagittis turpis. Nulla sollicitudin rutrum eros eu dictum...

*/} {/*

Morbi scelerisque nulla et lectus dignissim eleifend nulla eu nulla a metus

John Doe 24 Jan, 2021

Quisque id sagittis turpis. Nulla sollicitudin rutrum eros eu dictum...

*/}
{/*
{allBlogs .sort((a, b) => { if ( new Date(a.metadata.publishedAt) > new Date(b.metadata.publishedAt) ) { return -1 } return 1 }) .map((post) => (

{formatDate(post.metadata.publishedAt, false)}

{post.metadata.title}

))}
*/} ) }