1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 09:13:19 +01:00

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

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 (