fix jamstack init note dir does not exist
This commit is contained in:
parent
5ed692d3d0
commit
221fe2541f
|
@ -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
Loading…
Reference in New Issue