# Layout ## Add a new layout Take a new layout named `secondary` as an example to make the route starting with `secondary` use this layout. 1. Add related configuration in `src/utils/config.js`. For details, please refer to [layouts](/configuration?id=layouts). ```javascript layouts: [ { name: 'primary', include: [/.*/], exclude: [/(\/(en|zh))*\/login/, /(\/(en|zh))*\/secondary\/(.*)/], }, { name: 'secondary', include: [/(\/(en|zh))*\/secondary\/(.*)/], }, ], ``` 2. Add the `secondary` layout component to the `src/layouts/BaseLayout.js` file. ```javascript import SecondaryLayout from './SecondaryLayout' const LayoutMap = { primary: PrimaryLayout, public: PublicLayout, secondary: SecondaryLayout, } ``` 3. Add the `SecondaryLayout.js` file to the `src/layouts/` directory. ```javascript import React from 'react' export default ({ children }) => { return (