Nested directories in blog.sources

I would like to group a certain kind of blog posts by putting them in subdirectory inside the main directory where the blog posta are read, which is configured with blog.sources.

Is there a way?

Since you can do this

blog.sources = "content/blogg/{year}/:title.html"

and then place files in directories for different years, I think there is.

Not sure how it works though. Maybe {year} is just a token. Or maybe you can try replacing ‘year’ with something enumerable, like a array of strings (i.e. directory names). Use ‘.’ to stay in the parent directory.

Hi @tommysundstrom,
thanks for your advice.

I was thinking something along these lines as well, but couldn’t find a solution for it. It’s not clear to me the fact of using an array of strings in your example.

Anyway, I think the solution I’ll use is a step further than your example: I’ll just put the content in separate directories, and leave no content in the parent, so that something like blog.sources = "content/:kind/:title.html" certainly works.

Thanks