Commit 61298bfd authored by 吕祺's avatar 吕祺 ⛹🏽

ronghuipagejson

parent 87105b09
......@@ -10,9 +10,13 @@ const storeData = (data, path) => {
}
try {
const doc = yaml.loadAll(fs.readFileSync('./content/frontPage.md', 'utf8'));
let doc = yaml.loadAll(fs.readFileSync('./content/frontPage.md', 'utf8'));
// console.log(doc[0]);
storeData(doc[0], './out/frontpage.json')
doc = yaml.loadAll(fs.readFileSync('./content/frontPage.md', 'utf8'));
storeData(doc[0], './out/ronghuipage.json')
} catch (e) {
console.log(e);
throw(e)
......
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