correct naming, get subfolders as well
This commit is contained in:
parent
9322a1bdac
commit
fb96bc06c0
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/** All blog posts as a collection. */
|
||||
const getAllPosts = collection => {
|
||||
const projects = collection.getFilteredByGlob('./src/posts/*.md');
|
||||
return projects.reverse();
|
||||
const posts = collection.getFilteredByGlob('./src/posts/**/*.md');
|
||||
return posts.reverse();
|
||||
};
|
||||
|
||||
/** All markdown files as a collection for sitemap.xml */
|
||||
|
|
|
|||
Loading…
Reference in a new issue