fix jamstack init note dir does not exist

This commit is contained in:
Wouter Groeneveld 2021-06-21 15:53:46 +02:00
parent 5ed692d3d0
commit 221fe2541f
2 changed files with 2 additions and 4 deletions

View File

@ -24,9 +24,7 @@ const fsp = require('fs').promises;
// 3. build Lunr index
console.log("3. Building lunr search index...")
const index = await lunr.buildIndex([
`${__dirname}/content/post`,
`${__dirname}/content/notes`])
const index = await lunr.buildIndex([`${__dirname}/content/post`])
await fsp.writeFile(`${__dirname}/static/js/brainbaking-post.json`, JSON.stringify(index), 'utf-8')
// 4. get webmentions

File diff suppressed because one or more lines are too long