fix comments

This commit is contained in:
polv committed 2021-04-18 09:50:25 +07:00
1 parent a311ef72d3
commit 8960aa88bd
4 files changed
+9 -8

No files matched your search

+2 -2
View File
@@ -24,7 +24,7 @@ async function main () {
await fs.writeFile(
buildPath('theme.json'),
JSON.stringify(
yaml.safeLoad(await fs.readFile(srcPath(THEME_FILENAME), 'utf8'))
yaml.load(await fs.readFile(srcPath(THEME_FILENAME), 'utf8'))
)
)
@@ -40,7 +40,7 @@ async function main () {
await Promise.all(
files.map(async (f) => {
const header = zMatter.parse(
yaml.safeLoad(
yaml.load(
fs.readFileSync(srcPath('_post', f), 'utf-8').split(/\n---\n/)[0]
)
)