feat: make whole search result clickable (#285)

This commit is contained in:
LaySent 2017-10-17 10:27:44 +08:00 committed by cinwell.li
parent 3476f6ff1f
commit 1b912272df
2 changed files with 4 additions and 1 deletions

View File

@ -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>`
})

View File

@ -52,6 +52,7 @@ div#app {
.search .search-keyword {
color: var(--theme-color, $color-primary);
font-style: normal;
font-weight: bold;
}
html,