This commit is contained in:
Michael Rose 2022-05-27 12:25:22 -04:00
commit 1433887f67

View file

@ -19,8 +19,9 @@ const search = instantsearch({
const hitTemplate = function(hit) {
const url = hit.url;
const title = hit._highlightResult.title.value;
const content = hit._highlightResult.html.value;
const hightlight = hit._highlightResult;
const title = hightlight.title && hightlight.title.value || "";
const content = hightlight.html && hightlight.html.value || "";
return `
<div class="list__item">