fix searching
This commit is contained in:
1 parent
25585aa3da
commit
43edfb60d4
10 files changed
+126
-102
No files matched your search
@@ -58,9 +58,9 @@ export let db: Loki
|
||||
|
||||
export let dbPost: Collection<IPost>
|
||||
|
||||
export let idx: lunr.Index
|
||||
let idx: lunr.Index
|
||||
|
||||
export async function initLunr () {
|
||||
export async function getLunr () {
|
||||
return idx || lunr.Index.load(require('../build/idx.json'))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user