Skip to content

Commit

Permalink
fix(generatePostPreviewImages): Use new yaml API
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenKnoops authored and maxpou committed Jul 5, 2019
1 parent 89c13c5 commit a69cea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generatePostPreviewImages.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { readFile, existsSync } = require('fs')
const { join, dirname } = require('path')
const glob = require('glob')
const yaml = require('yaml').default
const YAML = require('yaml')
const puppeteer = require('puppeteer')

const baseUrl = process.argv[2] || 'http://localhost:8000/'
Expand Down Expand Up @@ -39,7 +39,7 @@ const parseFile = async file => {
}

const frontmatter = content.split('---')[1]
const data = yaml.parse(frontmatter)
const data = YAML.parse(frontmatter)

return resolve({
...data,
Expand Down

0 comments on commit a69cea6

Please sign in to comment.