@@ -12,11 +12,9 @@ import MetaTitle from 'templates/components/MetaTitle';
12
12
import SectionLinks from './SectionLinks' ;
13
13
import React from 'react' ;
14
14
import { colors , media } from 'theme' ;
15
- import {
16
- sectionListCommunity ,
17
- sectionListDocs ,
18
- sectionListFooter ,
19
- } from 'utils/sectionList' ;
15
+ import { sectionListCommunity , sectionListDocs } from 'utils/sectionList' ;
16
+
17
+ import navFooter from '../../../content/footerNav.yml' ;
20
18
21
19
import ossLogoPng from 'images/oss_logo.png' ;
22
20
@@ -64,7 +62,7 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
64
62
} ,
65
63
} } >
66
64
< FooterNav layoutHasSidebar = { layoutHasSidebar } >
67
- < MetaTitle onDark = { true } > { sectionListFooter . docs . title } </ MetaTitle >
65
+ < MetaTitle onDark = { true } > { navFooter . docs . title } </ MetaTitle >
68
66
{ sectionListDocs . map ( section => {
69
67
const defaultItem = section . items [ 0 ] ;
70
68
return (
@@ -77,15 +75,11 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
77
75
} ) }
78
76
</ FooterNav >
79
77
< FooterNav layoutHasSidebar = { layoutHasSidebar } >
80
- < MetaTitle onDark = { true } >
81
- { sectionListFooter . channels . title }
82
- </ MetaTitle >
83
- < SectionLinks links = { sectionListFooter . channels . items } />
78
+ < MetaTitle onDark = { true } > { navFooter . channels . title } </ MetaTitle >
79
+ < SectionLinks links = { navFooter . channels . items } />
84
80
</ FooterNav >
85
81
< FooterNav layoutHasSidebar = { layoutHasSidebar } >
86
- < MetaTitle onDark = { true } >
87
- { sectionListFooter . community . title }
88
- </ MetaTitle >
82
+ < MetaTitle onDark = { true } > { navFooter . community . title } </ MetaTitle >
89
83
{ sectionListCommunity . map ( section => (
90
84
< FooterLink
91
85
to = { `/community/${ section . items [ 0 ] . id } .html` }
@@ -95,8 +89,8 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
95
89
) ) }
96
90
</ FooterNav >
97
91
< FooterNav layoutHasSidebar = { layoutHasSidebar } >
98
- < MetaTitle onDark = { true } > { sectionListFooter . more . title } </ MetaTitle >
99
- < SectionLinks links = { sectionListFooter . more . items } />
92
+ < MetaTitle onDark = { true } > { navFooter . more . title } </ MetaTitle >
93
+ < SectionLinks links = { navFooter . more . items } />
100
94
</ FooterNav >
101
95
</ div >
102
96
< section
0 commit comments