mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-13 00:57:53 +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 = {};
|
||||
}
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue