Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
O
official
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吕祺
official
Commits
a54cb62b
Commit
a54cb62b
authored
May 14, 2021
by
吕祺
⛹🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add warning
parent
9d2ded96
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
index.js
components/Header/index.js
+6
-3
head.md
content/head.md
+2
-0
config.yml
static/admin/config.yml
+2
-0
No files found.
components/Header/index.js
View file @
a54cb62b
...
...
@@ -19,7 +19,7 @@ export class Header extends React.PureComponent {
this
.
renderLinks
=
this
.
renderLinks
.
bind
(
this
)
this
.
renderCollapse
=
this
.
renderCollapse
.
bind
(
this
)
}
genLink
(
en
,
curPage
,
path
,
txt
,
txtEN
)
{
genLink
(
en
,
curPage
,
path
,
txt
,
txtEN
,
query
=
null
)
{
return
(
<
span
className
=
{
classnames
({
...
...
@@ -27,7 +27,7 @@ export class Header extends React.PureComponent {
active
:
curPage
===
path
})}
>
<
Link
prefetch
=
{
false
}
href
=
{{
pathname
:
'/'
+
path
}}
>
<
Link
prefetch
=
{
false
}
href
=
{{
pathname
:
'/'
+
path
,
query
}}
passHref
=
"true"
>
<
a
style
=
{{
height
:
'100%'
,
display
:
'inline-block'
}}
>
{
en
===
null
?
''
:
en
?
txtEN
:
txt
}
<
/a
>
...
...
@@ -149,7 +149,9 @@ export class Header extends React.PureComponent {
ronghui
,
ronghuiEN
,
news
,
newsEN
newsEN
,
warn
,
warnEN
}
}
=
head
const
{
en
,
curPage
,
setLang
}
=
this
.
props
...
...
@@ -174,6 +176,7 @@ export class Header extends React.PureComponent {
ronghuiEN
)}
{
this
.
genLink
(
en
,
curPage
+
'.html'
,
'news.html'
,
news
,
newsEN
)}
{
this
.
genLink
(
en
,
curPage
+
'.html'
,
'post.html'
,
warn
,
warnEN
,
{
t
:
"news"
,
d
:
"20210514014133435"
})}
{
!
collapse
&&
en
!==
null
&&
(
<
span
className
=
{
classnames
({
...
...
content/head.md
View file @
a54cb62b
...
...
@@ -6,10 +6,12 @@ portfolio: 投资企业
team
:
团队
ronghui
:
榕汇
news
:
动态
warn
:
免责声明
aboutEN
:
About
portfolioEN
:
Portfolio
teamEN
:
Team
ronghuiEN
:
Community
newsEN
:
News
warnEN
:
Disclaimer
---
static/admin/config.yml
View file @
a54cb62b
...
...
@@ -324,11 +324,13 @@ collections:
-
{
label
:
"
Team"
,
name
:
"
team"
,
widget
:
"
string"
}
-
{
label
:
"
Ronghui"
,
name
:
"
ronghui"
,
widget
:
"
string"
}
-
{
label
:
"
News"
,
name
:
"
news"
,
widget
:
"
string"
}
-
{
label
:
"
Warn"
,
name
:
"
warn"
,
widget
:
"
string"
}
-
{
label
:
"
AboutEN"
,
name
:
"
aboutEN"
,
widget
:
"
string"
}
-
{
label
:
"
PortfolioEN"
,
name
:
"
portfolioEN"
,
widget
:
"
string"
}
-
{
label
:
"
TeamEN"
,
name
:
"
teamEN"
,
widget
:
"
string"
}
-
{
label
:
"
RonghuiEN"
,
name
:
"
ronghuiEN"
,
widget
:
"
string"
}
-
{
label
:
"
NewsEN"
,
name
:
"
newsEN"
,
widget
:
"
string"
}
-
{
label
:
"
WarnEN"
,
name
:
"
warnEN"
,
widget
:
"
string"
}
-
label
:
"
Foot"
name
:
"
foot"
file
:
"
content/foot.md"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment