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

Separate layouts from includes #81

Open
ndorfin opened this issue Sep 15, 2021 · 0 comments
Open

Separate layouts from includes #81

ndorfin opened this issue Sep 15, 2021 · 0 comments

Comments

@ndorfin
Copy link
Contributor

ndorfin commented Sep 15, 2021

Hi @matuzo

With your permission, I'd like to separate layout templates into their own root _layouts folder, so that we get the following structure:

hell/
  - _includes/
  - _layouts/

…rather than the existing structure we have now:

hell/
  - _includes/
     - layouts/

This was an optional configuration released in Eleventy 0.8.0.

The reason I'm suggesting this change… I want to suggest we start using includes from within layouts, so that we have a nice clean way to handle:

  • <head> markup includes for:
    • opengraph settings
    • PWA configuration
  • <body> markup includes:
    • SVG Sprite
    • Site header
    • Site footer & Newsletter form

But also, when I went looking for the layouts folder, I didn't expect to see it inside of _includes. (maybe that's my Rails experience showing :P)

Waddayathink?
-S

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