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

fix cms

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