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

Nest layouts #8

Open
MichaelCurrin opened this issue Nov 9, 2020 · 1 comment
Open

Nest layouts #8

MichaelCurrin opened this issue Nov 9, 2020 · 1 comment

Comments

@MichaelCurrin
Copy link

Did you know that you can use a layout in a layout.

That means you can define DOCTYPE and head tag usage once in default.html and then your page.html and project.html and home.html layouts can all using the default.html layout or each other.

See how it works in Minima

https://github.com/jekyll/minima/blob/master/_layouts/page.html

@MichaelCurrin
Copy link
Author

For interest, note that minima has a gemspec file so you can use it in another project by configuring it as a theme without forking the entire minima theme.

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

1 participant