LucasVanHaaren/pelican-data-files

Provide Support for data sub-directories

Closed this issue ยท 5 comments

It would be convenient to also support sub-directories similar to jekyl (https://jekyllrb.com/docs/datafiles/#subfolders).

For example: Files in the content/data/subdir/ directory would be accessible via the DATA_SUBDIR_ prefix variable in Jinja templates.

Hello @alexandry-augustin,

I totally agreed this will be a great feature to better organize data files !
Do you want to work on this feature implementation ?

Hi @LucasVanHaaren,

Yes I can fix that, feel free to assign it me!

Pull request created. Let me know if you have any issues with it.

Hello @alexandry-augustin,

Thanks a lot for your work, I just reviewed your code, it seems great !
I will test it locally ASAP for further checks and if everything is good will merge it and release a new version

PR merged and released as 1.3.0 ๐ŸŽ‰

https://pypi.org/project/pelican-data-files/1.3.0/