如何重新定义自定义页面的布局
我在 ruby nanoc (http://nanoc.stoneship.org/) 上使用了一个很好的站点生成器。我需要重新定义渲染某些页面的布局。也许可以直接在yaml配置中确定?
例如,我有一些布局 (my_layout.html
),但我想创建几个空白页面(使用 blank.html
布局)。
I use nice a site-generator on ruby nanoc (http://nanoc.stoneship.org/). I need to redefine the layout for rendering some pages. Maybe it can be determined directly in yaml config?
For example, I have some layout (my_layout.html
), but I want to create several blank pages (with blank.html
layout).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这在文档中。
您需要添加
在相关页面的
。compile
规则中布局'blank'This is in the doc.
You need to add
layout 'blank'
in thecompile
rule for the concerned pages.