Commit 3300d428 authored by NGPixel's avatar NGPixel

Fix for Search index not updated during create

parent 9976842e
...@@ -321,7 +321,9 @@ module.exports = { ...@@ -321,7 +321,9 @@ module.exports = {
return self.exists(entryPath).then((docExists) => { return self.exists(entryPath).then((docExists) => {
if (!docExists) { if (!docExists) {
return self.makePersistent(entryPath, contents).then(() => { return self.makePersistent(entryPath, contents).then(() => {
return self.updateCache(entryPath) return self.updateCache(entryPath).then(entry => {
return search.add(entry)
})
}) })
} else { } else {
return Promise.reject(new Error('Entry already exists!')) return Promise.reject(new Error('Entry already exists!'))
......
...@@ -61,9 +61,9 @@ block content ...@@ -61,9 +61,9 @@ block content
aside.stickyscroll(data-margin-top=40) aside.stickyscroll(data-margin-top=40)
.sidebar-label .sidebar-label
i.icon-th-list i.icon-th-list
span Contents span Page Contents
ul.sidebar-menu ul.sidebar-menu
li: a(href='#root', title='Start') Start li: a(href='#root', title='Top of Page') Top
+tocMenu(pageData.tree) +tocMenu(pageData.tree)
.column .column
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment