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 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">
|
||||||
|
|
Loading…
Reference in a new issue