From 97e53ae67bfbf432426090e22dd9d38e7fcfd79a Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 9 Apr 2018 20:26:58 +0200 Subject: [PATCH] header hack --- src/components/molecules/Header.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/molecules/Header.js b/src/components/molecules/Header.js index 14c75a4..0a94c54 100644 --- a/src/components/molecules/Header.js +++ b/src/components/molecules/Header.js @@ -4,7 +4,8 @@ import PropTypes from 'prop-types' import Social from './Social' import './Header.scss' -const Header = ({ meta, minimal }) => { +const Header = ({ meta }) => { + const minimal = location.pathname === '/' ? false : true const classes = minimal ? 'header header--minimal' : 'header' return (