fix comments
This commit is contained in:
1 parent
a311ef72d3
commit
8960aa88bd
4 files changed
+9
-8
No files matched your search
@@ -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]
|
||||
)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user