File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 21
21
## Features
22
22
23
23
- No statically built html files
24
- - Simple and lightweight (~ 14kB gzipped)
24
+ - Simple and lightweight (~ 16kB gzipped)
25
25
- Smart full-text search plugin
26
26
- Multiple themes
27
27
- Useful plugin API
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export function main (config) {
31
31
'</button>' +
32
32
'<aside class="sidebar">' +
33
33
( config . name
34
- ? `<h1><a href="${ config . nameLink } ">${ config . name } </a></h1>`
34
+ ? `<h1><a data-nosearch href="${ config . nameLink } ">${ config . name } </a></h1>`
35
35
: '' ) +
36
36
'<div class="sidebar-nav"></div>' +
37
37
'</aside>' )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function escapeHtml (string) {
17
17
function getAllPaths ( ) {
18
18
const paths = [ ]
19
19
20
- helper . dom . findAll ( 'a' )
20
+ helper . dom . findAll ( 'a:not(data-nosearch) ' )
21
21
. map ( node => {
22
22
const href = node . href
23
23
const originHref = node . getAttribute ( 'href' )
You can’t perform that action at this time.
0 commit comments