feat: make whole search result clickable (#285)
This commit is contained in:
parent
3476f6ff1f
commit
1b912272df
2 changed files with 4 additions and 1 deletions
|
|
@ -94,8 +94,10 @@ function doSearch (value) {
|
||||||
let html = ''
|
let html = ''
|
||||||
matchs.forEach(post => {
|
matchs.forEach(post => {
|
||||||
html += `<div class="matching-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>
|
<p>${post.content}</p>
|
||||||
|
</a>
|
||||||
</div>`
|
</div>`
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,7 @@ div#app {
|
||||||
.search .search-keyword {
|
.search .search-keyword {
|
||||||
color: var(--theme-color, $color-primary);
|
color: var(--theme-color, $color-primary);
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue