mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Server-side render is-active for crawler
This commit is contained in:
parent
39ace04b55
commit
a0813b93e0
|
@ -54,6 +54,7 @@ const Sidebar = ({ items, pageMenu, slug }) => {
|
|||
const active = isActive || slug === url
|
||||
const itemClassNames = classNames(classes.link, {
|
||||
[classes.isActive]: active,
|
||||
'is-active': classes.isActive,
|
||||
})
|
||||
|
||||
return (
|
||||
|
@ -62,7 +63,6 @@ const Sidebar = ({ items, pageMenu, slug }) => {
|
|||
to={url}
|
||||
onClick={onClick}
|
||||
className={itemClassNames}
|
||||
activeClassName={classNames('is-active', classes.isActive)}
|
||||
hideIcon
|
||||
>
|
||||
{text}
|
||||
|
|
Loading…
Reference in New Issue
Block a user