Skip to content

Commit

Permalink
fix search styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Jan 3, 2022
1 parent ca886e4 commit 7507fd2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions layouts/partials/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,10 @@ <h3>${resultTitle}</h3>

// display
if (finalResults.length === 0) {
results.innerHTML = `<div class="result-card">
<p>No results.</p>
</div>`
results.innerHTML = `<button class="result-card">
<h3>No results.</h3>
<p>Try another search term?</p>
</button>`
} else {
results.innerHTML = finalResults
.map(result => resultToHTML({
Expand Down

0 comments on commit 7507fd2

Please sign in to comment.