Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed May 27, 2022
2 parents 2f5af90 + 03a26a1 commit 1433887
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _includes/search/algolia-search-scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@

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">
Expand Down

0 comments on commit 1433887

Please # to comment.