Merge branch 'master' of https://github.com/mmistakes/minimal-mistakes
This commit is contained in:
commit
1433887f67
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