Closed lunelson closed 8 years ago
Good idea! All for it, I'll tackle it soon unless you want to beat me to the punch with a PR =)
I would if I could, but it's a bit over my head, sorry
I finally added a flattenIndex
option as part of a 1.0 release (#14) that does this. If you're still using the plugin please let me know if it works as expected with your content. I'm assuming that you wanted files of the same name as their parent directory merged. I also apply the same behavior if they're named index
.
Hey, this is very cool, I haven't had a chance to try it yet but I will !
In the example files in your test directory, you have a file called
blog.md
inside the/blog
directory. It would be nice if the single-file mode simply combined the data fromblog.md
with the child elements of that directory, which is more typical of the kind of data-structure that markdown-based content-collection systems generate. The resulting object would be like the following: