Allow for site wide config of layout
gryzzly opened this issue · comments
I would like to have non-theme based layout with .html
as extension (using .ejs compiler to allow the use of variables) but I would not like to specify layout in each page.
Currently it seems only .pug
would work without specifying layout per page.
Thanks!
It would be even nicer if it‘d be possible to define a "glob to layout" setting, so even if some pages had special layout, the view metadata would live in a separate place. Maybe smth like this:
layout: {
default: 'index.html',
'/pages/foo/*': 'foo.html'
}
It's already can be customised by default capabilities.
Edit ./config.yaml
for your site the following way:
pages:
^pages/foo:
layout: 'foo.html'
.*:
layout: 'index.html'
@codEmotion thanks! is this documented somewhere? do you welcome PRs updating docs?