Skip to content

Commit 08ec03b

Browse files
author
dphuang2
committed
render all blog posts
1 parent 9eb4baa commit 08ec03b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/blog-plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ async function blogPluginExtended(...pluginArgs) {
1212
* Override the default `contentLoaded` hook to access blog posts data
1313
*/
1414
contentLoaded: async function (data) {
15-
// Get the 5 latest blog posts
16-
const recentPosts = [...data.content.blogPosts].splice(0, 5);
15+
// Get all blog posts
16+
const recentPosts = [...data.content.blogPosts];
1717

1818
data.actions.addRoute({
1919
// Add route for the home page

0 commit comments

Comments
 (0)