Commit ff9c2945 authored by 吕祺's avatar 吕祺 ⛹🏽

article aggregate

parent a6be295c
...@@ -8,6 +8,18 @@ cache: ...@@ -8,6 +8,18 @@ cache:
- node_modules/ - node_modules/
compile_articles:
stage: build
# when: manual
environment:
name: release
only:
- master
script:
- yarn
- node utils/articleAggregate.js
- sh utils/commit.sh
# compress_images: # compress_images:
# stage: build # stage: build
# # when: manual # # when: manual
......
---
title: 关于冒用高榕资本名义的严正声明
titleEN: 高榕资本严正声明
hide: true
createDate: 2021-05-14T01:41:33.435Z
abstract: 近期我司发现有不法分子通过网站、App、微信、微博等渠道,冒用高榕资本(包括但不限于高榕资本、Gaorong Capital、Banyan
Capital、高榕或者Gaorong)以及高榕资本工作人员(以下统称“高榕资本”)的名义,发布虚假信息,开展融资、理财、资本募集、产品销售等非法活动。
content: >-
近期我司发现有不法分子通过网站、App、微信、微博等渠道,冒用高榕资本(包括但不限于高榕资本、Gaorong Capital、Banyan
Capital、高榕或者Gaorong)以及高榕资本工作人员(以下统称“高榕资本”)的名义,发布虚假信息,开展融资、理财、资本募集、产品销售等非法活动。
**高榕资本特此郑重声明:**
高榕资本严格遵守相关法律法规及监管规范,旗下基金仅面向符合相关资质要求的合格投资人以非公开方式募集,不会以任何形式向任何主体承诺保底收益。高榕资本从未,也从未授权任何实体或个人以高榕资本名义通过任何公开方式(包括但不限于网站、APP、微信、微博等渠道)进行融资、理财、资本募集、产品销售等活动。
高榕资本与此类冒用高榕资本名义的实体或个人无任何法律或者商业上关系,其任何行为均与高榕资本无关。任何未经授权擅自冒用高榕资本名义的行为均系侵权行为,我司保留采取法律手段维护自身合法权益、追究侵权者法律责任的权利。
特别提醒广大公众提高警惕,切勿轻信此类虚假信息,以免遭受财产损失;如已遭遇此类情形请及时向公安机关、监管部门举报,以维护个人权益。
最后再次重申,有关高榕资本的信息请以如下官方渠道披露为准:
> 【官方网站】
>
> <https://www.gaorongvc.com/>
>
> 【官方微信公众号】
>
> 高榕资本
>
> ID:banyancapital
pic: /static/img/严正声明.jpg
---
backend: backend:
name: gitlab name: test-repo
#name: gitlab
branch: master branch: master
repo: lq/cmscenter repo: lq/cmscenter
auth_type: implicit auth_type: implicit
...@@ -25,18 +26,8 @@ collections: ...@@ -25,18 +26,8 @@ collections:
- { label: "content", name: "content", widget: "markdown"} - { label: "content", name: "content", widget: "markdown"}
- { label: "coverpic", name: "coverpic", widget: "image" } - { label: "coverpic", name: "coverpic", widget: "image" }
- name: "Richtext" - name: "FrontPage"
label: "richtext" label: "frontpage"
sortable_fields: ['type', 'title','createDate', 'highLight','source'] file: "content/aboutPage.md"
create: true
identifier_field: name
folder: "content/richtext"
summary: "{{title}} {{createDate}}"
fields: fields:
- { label: "Title", name: "title", widget: "string" } - { label: "Title", name: "title", widget: "string"}
- { label: "type", name: "type", widget: "string", required: false} \ No newline at end of file
- { label: "createDate", name: "createDate", widget: "datetime" }
- { label: "Abstract", name: "abstract", widget: "text" }
- { label: "content", name: "content", widget: "markdown"}
- { label: "coverpic", name: "coverpic", widget: "image" }
\ No newline at end of file
const yaml = require('js-yaml');
const fs = require('fs');
const path = "./content/news/"
var articles = []
fs.readdirSync(path).forEach(files=>{
// console.log(files);
try {
const doc = yaml.loadAll(fs.readFileSync(path + files, 'utf8'));
articles.push(doc[0])
} catch (e) {
console.log(e);
}
})
articles.sort((a, b) => {
ta = new Date(a.createDate)
tb = new Date(b.createDate)
return tb.getTime() - ta.getTime()
})
try {
let str = yaml.dump(articles, "./content/newsList.md")
str = `---
news:
${str}
---`
fs.writeFile('./content/newsList.md', str, function (error) {
if (error) {
console.log('写入失败')
} else {
console.log('写入成功了')
}
})
} catch(e) {
console.log(e)
}
\ No newline at end of file
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