We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eb4baa commit 08ec03bCopy full SHA for 08ec03b
plugins/blog-plugin.js
@@ -12,8 +12,8 @@ async function blogPluginExtended(...pluginArgs) {
12
* Override the default `contentLoaded` hook to access blog posts data
13
*/
14
contentLoaded: async function (data) {
15
- // Get the 5 latest blog posts
16
- const recentPosts = [...data.content.blogPosts].splice(0, 5);
+ // Get all blog posts
+ const recentPosts = [...data.content.blogPosts];
17
18
data.actions.addRoute({
19
// Add route for the home page
0 commit comments