import Link from 'next/link' import date from 'date-and-time' import { ShadowContainer } from '@/components/design/ShadowContainer' import { getBlogPosts } from '@/blog/blog' export const BlogPosts = async (): Promise => { const posts = await getBlogPosts() return (
{posts.map((post, index) => { const postPublishedOn = date.format( new Date(post.frontmatter.publishedOn), 'DD/MM/YYYY' ) return (

{post.frontmatter.title}

{postPublishedOn}

{post.frontmatter.description}

) })}
) }