feat: set up new homepage using new branding

This commit is contained in:
Jean-Philippe Sirois
2019-08-23 17:00:15 -04:00
parent 59f83e3dd0
commit 0af9faf322
14 changed files with 302 additions and 60 deletions
+3 -1
View File
@@ -4,15 +4,17 @@ import { ResourcesLayout } from "../components/ResourcesLayout"
export default function BaseLayout({
children,
location,
pageContext,
}: PropsWithChildren<{
pageContext: {
layout?: string
}
location: Location
}>) {
if (pageContext.layout === "resources") {
return <ResourcesLayout>{children}</ResourcesLayout>
}
return <Layout>{children}</Layout>
return <Layout location={location}>{children}</Layout>
}