We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2f5af90 + 03a26a1 commit 1433887Copy full SHA for 1433887
_includes/search/algolia-search-scripts.html
@@ -19,8 +19,9 @@
19
20
const hitTemplate = function(hit) {
21
const url = hit.url;
22
- const title = hit._highlightResult.title.value;
23
- const content = hit._highlightResult.html.value;
+ const hightlight = hit._highlightResult;
+ const title = hightlight.title && hightlight.title.value || "";
24
+ const content = hightlight.html && hightlight.html.value || "";
25
26
return `
27
<div class="list__item">
0 commit comments