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

c# - Sort XmlNodeList with a specific Node value -

Android Java.Lang.RuntimeException : Unable to start activity Component Info -

actionscript 3 - Equivalent to moveReceived in ElectroServer 5 -