Increase the number of latest blog posts displayed
This commit is contained in:
parent
8439f366c8
commit
0a7e6bd42d
1 changed files with 1 additions and 1 deletions
|
@ -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> — <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> — <time className="post-list-date">{Intl.DateTimeFormat("en-CA", { dateStyle: "long" }).format(post.data.date)}</time>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue