Fix body class (#521)

This commit is contained in:
Elian Ibaj 2018-03-28 19:55:00 +02:00 committed by Joel Marcey
parent b6c6c2e4b8
commit 1a674885ae

View file

@ -56,6 +56,8 @@ class Site extends React.Component {
htmlElementProps = {};
}
const className = this.props.className || '';
return (
<html {...htmlElementProps}>
<Head
@ -66,7 +68,7 @@ class Site extends React.Component {
/>
<body
className={classNames({
[this.props.className]: true,
[className]: className,
separateOnPageNav: this.props.config.onPageNav == 'separate',
})}>
<HeaderNav