header hack

This commit is contained in:
Matthias Kretschmann 2018-04-09 20:26:58 +02:00
parent de4f7f780d
commit 97e53ae67b
Signed by: m
GPG Key ID: 606EEEF3C479A91F
1 changed files with 2 additions and 1 deletions

View File

@ -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 (