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
Post a Comment