popover implementation

This commit is contained in:
Jacky Zhao
2022-01-03 13:18:31 -05:00
parent 51308b20a0
commit 671fe795b2
9 changed files with 81 additions and 18 deletions

View File

@ -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')