scmorrison / uzu

Uzu is a static site generator with built-in web server, file modification watcher, live reload, i18n, themes, multi-page support, inject external data via local Raku module, and external pre/post command execution.
Artistic License 2.0
36 stars 1 forks source link

Disable layout on a per-page basis #25

Closed evanmiller closed 7 years ago

evanmiller commented 7 years ago

I have a project where one file needs to be XHTML, and all other HTML (all built files need to have extension .html though). I'd like to be able to disable the layout for the one XHTML page.

scmorrison commented 7 years ago

Hi @evanmiller, you can now create a nolayout variable in page yaml and the page will render without the layout.

---
nolayout: true

The value can be anything, the variable just needs to be defined.

evanmiller commented 7 years ago

Works great, thanks!