Increase the number of latest blog posts displayed

This commit is contained in:
Foster Hangdaan 2023-12-03 13:22:18 -05:00
parent 8439f366c8
commit 0a7e6bd42d
Signed by: foster
GPG key ID: E48D7F49A852F112

View file

@ -56,7 +56,7 @@ export default function({ nav }) {
<a className="header-anchor" href="#latest-blog-posts">Latest Blog Posts</a> <a className="header-anchor" href="#latest-blog-posts">Latest Blog Posts</a>
</h2> </h2>
<ul> <ul>
{nav.menu("/blog/posts").children.sort(sortPosts).slice(0,3).map(post => ( {nav.menu("/blog/posts").children.sort(sortPosts).slice(0,5).map(post => (
<li> <li>
<a href={post.data.url} >{post.data.title}</a> &mdash; <time className="post-list-date">{Intl.DateTimeFormat("en-CA", { dateStyle: "long" }).format(post.data.date)}</time> <a href={post.data.url} >{post.data.title}</a> &mdash; <time className="post-list-date">{Intl.DateTimeFormat("en-CA", { dateStyle: "long" }).format(post.data.date)}</time>
</li> </li>