0

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).

sawa
  • 165,429
  • 45
  • 277
  • 381
Sanchosrancho
  • 73
  • 1
  • 8

1 Answers1

2

This is in the doc.

You need to add layout 'blank' in the compile rule for the concerned pages.

Damien Pollet
  • 6,488
  • 3
  • 27
  • 28
  • I meant, how to do that without changing compile rule every time you need to do that? – Sanchosrancho Jan 10 '11 at 10:04
  • Well it depends how many pages and how you can name them... I guess you could pick a layout depending on some attribute of the page as well, similarly to [this](http://nanoc.stoneship.org/docs/6-guides/#using-filters-based-on-file-extensions)… – Damien Pollet Jan 10 '11 at 13:49
  • No problem. Can you edit your question so that it makes more sense to other readers with the same problem? – Damien Pollet Jan 10 '11 at 15:32