Commit 182d13f6 authored by 吕祺's avatar 吕祺 ⛹🏽

fix cms

parent 0b4d15d0
......@@ -363,7 +363,7 @@ collections:
- { label: "treeLogo", name: "treeLogo", widget: "image"}
- { label: "footerMask", name: "footerMask", widget: "image"}
- { label: "wechatimg", name: "wechatimg", widget: "image"}
- name: "News"
label: "News"
sortable_fields: ['type', 'title','createDate', 'highLight','source']
......@@ -449,7 +449,7 @@ collections:
field: type
pattern: '高榕动态'
identifier_field: name
folder: "content/articles"
folder: "content/news"
summary: "{{title}} {{createDate}}"
fields:
- { label: "Title", name: "title", widget: "string" }
......
const yaml = require('js-yaml');
const fs = require('fs');
const path = "./content/articles/"
const path = "./content/news/"
var articles = []
fs.readdirSync(path).forEach(files=>{
// console.log(files);
......
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