How to redefine layout for custom page
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).
This is in the doc.
You need to add layout 'blank'
in the compile
rule for the concerned pages.
精彩评论