import Link from '@/components/Link'
// import { PageSEO } from '@/components/SEO'
import Tag from '@/components/Tag'
import siteMetadata from '@/data/siteMetadata'
import { formatDate } from 'pliny/utils/formatDate'
import { NewsletterForm } from 'pliny/ui/NewsletterForm'
const MAX_DISPLAY = 5
export default function Home({ posts }) {
return (
<>
{/* */}
Latest
{siteMetadata.description}
{!posts.length && 'No posts found.'}
{posts.slice(0, MAX_DISPLAY).map((post) => {
const { slug, date, title, summary, tags } = post
return (
-
- Published on
-
{title}
{tags.map((tag) => (
))}
{summary}
Read more →
)
})}
{posts.length > MAX_DISPLAY && (
All Posts →
)}
{siteMetadata.newsletter?.provider && (
)}
>
)
}