开发者

How to redefine layout for custom page

开发者 https://www.devze.com 2023-02-03 03:32 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消