Skip to content

Commit

Permalink
ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
toreysoloio committed Jun 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent b2542ed commit 0ce90e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/docs/footer/flexsearch.html
Original file line number Diff line number Diff line change
@@ -305,7 +305,7 @@
// we want words after the matched word - ignore the last one though, since it will likely not be a full word.
string += doc.content.substring(indexAfter, indexAfter+30).trim().split(' ').slice(0, -1).join(' ');

return string.trim();
return '…' + string.trim() + '…';
}
catch(e){}
}

0 comments on commit 0ce90e5

Please sign in to comment.