1
,我想我的index.html指向特定的布局,使我创建的布局,它被称为nosidebar.htmlNanoc布局编译我与nanoc工作规则
我的规则是这样的:
compile 'index.html' do
layout 'nosidebar'
end
这似乎并不奏效。我究竟做错了什么?
,我想我的index.html指向特定的布局,使我创建的布局,它被称为nosidebar.htmlNanoc布局编译我与nanoc工作规则
我的规则是这样的:
compile 'index.html' do
layout 'nosidebar'
end
这似乎并不奏效。我究竟做错了什么?
我还没有确切做了你是谁,也许是这样的:
compile '/' do
rep.layout 'nosidebar'
end
您可以随时添加类似:
compile '*' do
if item.binary?
# don’t filter binary items
else
layout item[:layout] || 'default'
end
end
这意味着你可以决定的模板文件加入:
---
layout: nosidebar
---
在yaml文件的前端事项。
感谢您的帮助。但这并不奏效。 – 2011-03-10 22:19:53
一旦你理解了规则,它就可以工作。 – 2011-03-13 00:38:34