-
-
Save zsherman/dbca653f21ec41b05c37c1a892d9b9a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* layouts/Main.js */ | |
import Head from 'next/head' | |
import Wrapper from './Wrapper' | |
import Nav from 'components/Nav' | |
import Footer from 'components/Footer' | |
export default ({ children, title = 'This is the default title' }) => ( | |
<Wrapper> | |
<Head> | |
<title>{ title }</title> | |
</Head> | |
<header> | |
<Nav /> | |
</header> | |
<main> | |
{ children } | |
</main> | |
<Footer> | |
Footer | |
</Footer> | |
</Wrapper> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment