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

fix cms

parent 0b4d15d0
......@@ -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