popover implementation

This commit is contained in:
Jacky Zhao committed 2022-01-03 13:18:31 -05:00
1 parent 2b432d7f0b
commit 4a3c4fdef5
9 files changed
+81 -18

No files matched your search

+3 -4
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')