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 hitTemplate = function(hit) {
const url = hit.url; const url = hit.url;
const title = hit._highlightResult.title.value; const hightlight = hit._highlightResult;
const content = hit._highlightResult.html.value; const title = hightlight.title && hightlight.title.value || "";
const content = hightlight.html && hightlight.html.value || "";
return ` return `
<div class="list__item"> <div class="list__item">