Every file (first level) in the layouts directory will create a custom layout accessible with the layout property in the page component.

    • Type: String or Function (default: 'default')

    Use the layout key in your pages components to define which layout to use:

    1. export default {
    2. layout: 'blog',
    3. // OR
    4. layout(context) {
    5. return 'blog'
    6. }
    7. }