File size: 1,314 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
import Link from "next/link";
import PostPreviewCondensed from "./post-preview-condensed";
export default function Blog({ posts }) {
return (
<section id="blog" className="blog-section">
<div className="container">
<div className="row justify-content-center">
<div className="col-lg-6 col-md-10">
<div className="section-title text-center">
<h2>Latest Blog Posts</h2>
<p>
Butter also has a built in blog engine which makes it dead
simple to launch a new company blog.
</p>
<p>
<Link href={`/blog`} className="main-btn btn-hover mt-5">
View All Blog Posts
</Link>
</p>
</div>
</div>
</div>
<div className="row justify-content-center">
{posts.map((post) => (
<PostPreviewCondensed
key={post.slug}
title={post.title}
coverImage={post.featuredImage}
coverImageAlt={post.featuredImageAlt}
date={post.published}
author={post.author}
slug={post.slug}
excerpt={post.summary}
/>
))}
</div>
</div>
</section>
);
}
|