Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix loading data from subdir with a period in name #5433

Merged
merged 2 commits into from Oct 6, 2016

Conversation

ayastreb
Copy link
Contributor

@ayastreb ayastreb commented Oct 1, 2016

Fix #5429
If we're processing a directory - use it's name as a key.

@ayastreb ayastreb changed the title Fix loading data from subdir with a period in name #5429 Fix loading data from subdir with a period in name Oct 1, 2016
if File.directory?(path)
read_data_to(path, data[key] = {})
read_data_to(path, data[entry] = {})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might still need to do sanitize_filename here to make this accessible in Liquid.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, so "categories.01" will become "categories01", right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! I believe having .'s in the key is not acceptable.

@parkr parkr added the fix label Oct 3, 2016
Copy link
Member

@parkr parkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done! 🎉

@parkr
Copy link
Member

parkr commented Oct 6, 2016

@jekyllbot: merge +bug

@jekyllbot jekyllbot merged commit 6f05ebb into jekyll:master Oct 6, 2016
jekyllbot added a commit that referenced this pull request Oct 6, 2016
@parkr parkr added this to the 3.3 milestone Oct 6, 2016
@jekyll jekyll locked and limited conversation to collaborators Jul 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jekyll incorrectly processes _data subdirs with a period in the name
3 participants