Skip to content

Commit

Permalink
Fix body class (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
microbouji authored and JoelMarcey committed Mar 28, 2018
1 parent b6c6c2e commit 1a67488
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/core/Site.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ class Site extends React.Component {
htmlElementProps = {};
}

const className = this.props.className || '';

return (
<html {...htmlElementProps}>
<Head
Expand All @@ -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
Expand Down

0 comments on commit 1a67488

Please sign in to comment.