Commit 8183f904 authored by 吕祺's avatar 吕祺 ⛹🏽

add news hide

parent 58363395
......@@ -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 = {
......
......@@ -28,7 +28,7 @@ content: >-
>
> <http://www.gaorongvc.com/>
> <https://www.gaorongvc.com/>
>
......
......@@ -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" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment