The layout Property
Every file (first level) in the layouts directory will create a custom layout accessible with the layout property in the page component.
- Type:
StringorFunction(default:'default')
Use the layout key in your pages components to define which layout to use:
export default {
layout: 'blog',
// OR
layout(context) {
return 'blog'
}
}
Contributors
Alexandre Chopin
Sébastien Chopin
Debbie O'Brien
Benjamin Canac
fgiraud
Sergey Bedritsky
Alba Silvente Fuentes
Alexander Lichter
Krutie Patel
Daniel Roe
pooya parsa
Pim
Ahad Birang
Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!
