Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable layout on a per-page basis #25

Closed
evanmiller opened this issue Aug 16, 2017 · 2 comments
Closed

Disable layout on a per-page basis #25

evanmiller opened this issue Aug 16, 2017 · 2 comments

Comments

@evanmiller
Copy link

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
Copy link
Owner

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
Copy link
Author

Works great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants