diff --git a/pages/features.js b/pages/features.js
index 566226dfbc..d2b71f2869 100644
--- a/pages/features.js
+++ b/pages/features.js
@@ -11,6 +11,12 @@ import Hero from '../src/Hero'
import FeaturesHero from '../src/FeaturesHero'
import TrySection from '../src/TrySection'
+const HeadInjector = () => (
+
+ Features | Machine Learning Version Control System
+
+)
+
export default function FeaturesPage() {
return (
@@ -163,12 +169,6 @@ export default function FeaturesPage() {
)
}
-const HeadInjector = () => (
-
- Features | Machine Learning Version Control System
-
-)
-
const Container = styled.div`
${container};
`
diff --git a/pages/index.js b/pages/index.js
index be7912566d..56b1c415fe 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -12,6 +12,23 @@ import PromoSection from '../src/PromoSection'
import UseCases from '../src/UseCases'
import Subscribe from '../src/Subscribe'
+const HeadInjector = () => (
+
+
+
+ Machine Learning Version Control System · DVC
+
+)
+
export default function HomePage() {
return (
@@ -31,23 +48,6 @@ export default function HomePage() {
)
}
-const HeadInjector = () => (
-
-
-
- Machine Learning Version Control System · DVC
-
-)
-
const LearnMoreSection = styled.div`
z-index: 2;
position: absolute;
diff --git a/pages/support.js b/pages/support.js
index 392e5865fd..1eab32e374 100644
--- a/pages/support.js
+++ b/pages/support.js
@@ -12,6 +12,12 @@ import Hero from '../src/Hero'
import TrySection from '../src/TrySection'
import Popover from '../src/Popover/Popover'
+const HeadInjector = () => (
+
+ Support | Machine Learning Version Control System
+
+)
+
export default function SupportPage() {
return (
@@ -118,12 +124,6 @@ export default function SupportPage() {
)
}
-const HeadInjector = () => (
-
- Support | Machine Learning Version Control System
-
-)
-
const SupportHero = styled.div`
padding-top: 90px;
padding-bottom: 80px;
diff --git a/src/Documentation/SidebarMenu/SidebarMenu.js b/src/Documentation/SidebarMenu/SidebarMenu.js
index 41d864a5dd..6239581260 100644
--- a/src/Documentation/SidebarMenu/SidebarMenu.js
+++ b/src/Documentation/SidebarMenu/SidebarMenu.js
@@ -16,8 +16,6 @@ import { getParentsListFromPath } from './helper'
/** Height of each menu child items (to calc Element weight for animations) */
const heightMap = {}
-const blankStyle = {}
-
/** Calculate element height with all open children. */
function calculateHeight({ activePaths, path }) {
let height = 0
@@ -60,9 +58,7 @@ class SidebarMenuItem extends React.PureComponent {
{children && (
(this.linkRef = r)}
>
{children.map(item => (