File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,9 @@ const searchLunr = (text) => {
53
53
const subdiv = document . createElement ( 'div' )
54
54
subdiv . className = 'search-result-sub'
55
55
56
- const subtitle = document . createElement ( 'a' )
57
- subtitle . className = 'search-result-title'
58
- subtitle . href = result . links [ i ]
56
+ const subTitle = document . createElement ( 'a' )
57
+ subTitle . className = 'search-result-title'
58
+ subTitle . href = result . links [ i ]
59
59
60
60
const titleDiv = document . createElement ( 'div' )
61
61
@@ -67,15 +67,16 @@ const searchLunr = (text) => {
67
67
preview . className = 'search-result-preview'
68
68
preview . innerHTML = result . previews [ i ]
69
69
70
- title . appendChild ( titleDiv )
70
+ subTitle . appendChild ( titleDiv )
71
71
72
72
titleDiv . appendChild ( titleText )
73
73
titleDiv . appendChild ( preview )
74
74
75
- subdiv . appendChild ( title )
75
+ subdiv . appendChild ( subTitle )
76
76
77
77
div . appendChild ( subdiv )
78
78
}
79
+
79
80
searchResults . appendChild ( div )
80
81
}
81
82
searchResults . style . display = 'block'
You can’t perform that action at this time.
0 commit comments