如何从节点以hexo来保存数据页面的数组

我试图从一个对象数组而不是一个文件夹的页面列表Hexobuild立一个网站。

我想使用hexo只是因为我不想重新发明轮子,因为它似乎很less,但我没有得到如何传递一个JSON对象,并保存在一个site文件夹。

 var data = { title: 'Buttons', name: 'block-name', category: 'Category name / Sub category', description: 'This is the description of the element\n and you can write text just like this.', otherProperty: 'Hello' }; hexo = new Hexo(process.cwd(), { debug: true, config: '_config.yml' }); hexo.init().then(function(){ hexo.post.create(data, false); }); 

api hexo.post.create创build源文件,而不是最终的html文件,我不确定这是否可能,以及如何告诉Hexo如何做到这一点。

基本上,我会将data传递给我用来创build页面的模板,这可能吗?