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
8183f904
Commit
8183f904
authored
May 14, 2021
by
吕祺
⛹🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add news hide
parent
58363395
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
index.js
components/ArticleGrid/index.js
+5
-1
严正声明.md
content/news/严正声明.md
+1
-1
config.yml
static/admin/config.yml
+1
-0
No files found.
components/ArticleGrid/index.js
View file @
8183f904
...
...
@@ -10,8 +10,12 @@ export default class ArticleGrid extends React.PureComponent {
constructor
(
props
)
{
super
(
props
)
const
{
articleList
,
en
}
=
this
.
props
const
articles
=
articleList
.
filter
((
a
)
=>
en
===
null
?
''
:
en
?
a
.
abstractEN
:
a
.
abstract
{
if
(
a
.
hide
)
return
false
return
en
===
null
?
''
:
en
?
a
.
abstractEN
:
a
.
abstract
}
)
const
showMoreBtn
=
articles
.
length
>
6
this
.
state
=
{
...
...
content/news/严正声明.md
View file @
8183f904
...
...
@@ -28,7 +28,7 @@ content: >-
>
> <http://www.gaorongvc.com/>
> <http
s
://www.gaorongvc.com/>
>
...
...
static/admin/config.yml
View file @
8183f904
...
...
@@ -458,6 +458,7 @@ collections:
-
{
label
:
"
TitleEN"
,
name
:
"
titleEN"
,
widget
:
"
string"
,
required
:
false
}
-
{
label
:
"
Source"
,
name
:
"
source"
,
widget
:
"
string"
,
required
:
false
}
-
{
label
:
"
SourceEN"
,
name
:
"
sourceEN"
,
widget
:
"
string"
,
required
:
false
}
-
{
label
:
"
hide"
,
name
:
"
hide"
,
widget
:
"
boolean"
,
required
:
false
,
default
:
false
}
-
{
label
:
"
type"
,
name
:
"
type"
,
widget
:
"
string"
,
required
:
false
}
-
{
label
:
"
typeEN"
,
name
:
"
typeEN"
,
widget
:
"
string"
,
required
:
false
}
-
{
label
:
"
createDate"
,
name
:
"
createDate"
,
widget
:
"
datetime"
}
...
...
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