jekyll - How to access a data file in a plugin generator? -


i'd access data file have in _data folder , use in plugin generator, i'm not sure how. have:

site.data.projects.each |project|   ... end 

but when try compile tells me "undefined method 'projects' hash(...) nomethoderror. correct syntax?

if post _data file looks can give better answer, try:

site.data['projects'].each |project|   ... end 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -