eleventy-base-blog icon indicating copy to clipboard operation
eleventy-base-blog copied to clipboard

Sorting blog posts in the `content/blog` subfolder

Open verlok opened this issue 11 months ago • 2 comments

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?

verlok avatar Nov 25 '24 16:11 verlok