Skip to content

Commit

Permalink
feat: make whole search result clickable (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
laysent authored and QingWei-Li committed Oct 17, 2017
1 parent 3476f6f commit 1b91227
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/search/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ function doSearch (value) {
let html = ''
matchs.forEach(post => {
html += `<div class="matching-post">
<h2><a href="${post.url}">${post.title}</a></h2>
<a href="${post.url}">
<h2>${post.title}</h2>
<p>${post.content}</p>
</a>
</div>`
})

Expand Down
1 change: 1 addition & 0 deletions src/themes/basic/_layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ div#app {
.search .search-keyword {
color: var(--theme-color, $color-primary);
font-style: normal;
font-weight: bold;
}

html,
Expand Down

0 comments on commit 1b91227

Please sign in to comment.