Update algolia-search-scripts.html (#3102)
Fix issue https://github.com/mmistakes/minimal-mistakes/issues/3101
This commit is contained in:
parent
65237df377
commit
03a26a105d
1 changed files with 3 additions and 2 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue