eleventy-base-blog
eleventy-base-blog copied to clipboard
Sorting blog posts in the `content/blog` subfolder
My content folder has a blog subfolder, which in turn has all the blog posts as subfolders, e.g. how-to-use-this-for-that, and every blog folder contains an index.md file for the post content, plus images that are required for that blog post.
The problem I have is to be able to determine which blog post is more recent and what is older in the content/blog subfolder. I would like a solution where every folder started with the date, e.g. 2024-11-11_how-to-use-this-for-that.
How can I achieve that using eleventy v2? And with v3?