mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-14 01:27:35 +02:00
Fix body class (#521)
This commit is contained in:
parent
b6c6c2e4b8
commit
1a674885ae
1 changed files with 3 additions and 1 deletions
|
@ -56,6 +56,8 @@ class Site extends React.Component {
|
||||||
htmlElementProps = {};
|
htmlElementProps = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const className = this.props.className || '';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<html {...htmlElementProps}>
|
<html {...htmlElementProps}>
|
||||||
<Head
|
<Head
|
||||||
|
@ -66,7 +68,7 @@ class Site extends React.Component {
|
||||||
/>
|
/>
|
||||||
<body
|
<body
|
||||||
className={classNames({
|
className={classNames({
|
||||||
[this.props.className]: true,
|
[className]: className,
|
||||||
separateOnPageNav: this.props.config.onPageNav == 'separate',
|
separateOnPageNav: this.props.config.onPageNav == 'separate',
|
||||||
})}>
|
})}>
|
||||||
<HeaderNav
|
<HeaderNav
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue