diff --git a/src/components/layout.js b/src/components/layout.js index c413d3f..637190e 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -7,7 +7,7 @@ import Footer from "./footer" import { Helmet } from "react-helmet" import styles from "../styles/layout.module.scss" -const Layout = ({ children, title, author}) => { +const Layout = ({ children, title, author, vertical}) => { const data = useStaticQuery(graphql` query SiteTitleQuery { @@ -17,8 +17,9 @@ const Layout = ({ children, title, author}) => { hostname } } - } -`) + }`) + + const classes = vertical ? `${styles.content} ${styles.vertical}` : styles.content return (
@@ -30,7 +31,7 @@ const Layout = ({ children, title, author}) => {
-
+
{children}