Skip to content

Commit

Permalink
🐛 Fix: post page search (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
test-lin committed May 19, 2021
1 parent 49cd43e commit 9c30e08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/js/search/local-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ $(function () {
}
// show search results
if (isMatch) {
if (! dataUrl.startsWith('/')) {
dataUrl = '/' + dataUrl
}

str += '<div class="local-search__hit-item"><a href="' + dataUrl + '" class="search-result-title">' + dataTitle + '</a>' + '</div>'
count += 1
$('.local-search-stats__hr').show()
Expand Down

0 comments on commit 9c30e08

Please sign in to comment.