mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
feat: make whole search result clickable (#285)
This commit is contained in:
parent
3476f6ff1f
commit
1b912272df
@ -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>`
|
||||
})
|
||||
|
||||
|
||||
@ -52,6 +52,7 @@ div#app {
|
||||
.search .search-keyword {
|
||||
color: var(--theme-color, $color-primary);
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
html,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user