popover implementation
This commit is contained in:
parent
2b432d7f0b
commit
4a3c4fdef5
9 changed files with 81 additions and 18 deletions
|
@ -89,8 +89,7 @@
|
|||
}
|
||||
})
|
||||
|
||||
const scrapedContent = {{$.Site.Data.contentIndex}}
|
||||
for (const [key, value] of Object.entries(scrapedContent)) {
|
||||
for (const [key, value] of Object.entries(content)) {
|
||||
contentIndex.add({
|
||||
id: key,
|
||||
title: value.title,
|
||||
|
@ -151,8 +150,8 @@
|
|||
const fetch = id => ({
|
||||
id,
|
||||
url: id,
|
||||
title: scrapedContent[id].title,
|
||||
content: scrapedContent[id].content
|
||||
title: content[id].title,
|
||||
content: content[id].content
|
||||
})
|
||||
|
||||
const source = document.getElementById('search-bar')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue