hmans / flutterby

A flexible, Ruby-powered static site generator.
http://www.flutterby.run
MIT License
57 stars 2 forks source link

Control layouts through front matter #23

Closed hmans closed 7 years ago

hmans commented 7 years ago

We need to have a way to control which layout files are applied to a node through setting a value in its front matter. The following use cases should all be possible:

Applying no layout at all:

layout: []

or

layout: false

Applying a specific layout:

layout: "/_post"

Applying multiple layouts:

layout: ["/_post", "/_container"]
hmans commented 7 years ago

Pull request: #24