mirror of
https://github.com/thangisme/notes.git
synced 2024-12-22 07:26:22 -05:00
Add rel path to title matches
This commit is contained in:
parent
e370654237
commit
5867dc078f
@ -206,7 +206,7 @@ function initSearch() {
|
||||
var position = metadata[j].title.position[0];
|
||||
var start = position[0];
|
||||
var end = position[0] + position[1];
|
||||
resultTitle.innerHTML = doc.title.substring(0, start) + '<span class="search-result-highlight">' + doc.title.substring(start, end) + '</span>' + doc.title.substring(end, doc.title.length);
|
||||
resultTitle.innerHTML = doc.title.substring(0, start) + '<span class="search-result-highlight">' + doc.title.substring(start, end) + '</span>' + doc.title.substring(end, doc.title.length)+'<span class="search-result-rel-url">'+doc.relUrl+'</span>';
|
||||
|
||||
} else if (metadata[j].content && !contentFound) {
|
||||
contentFound = true;
|
||||
|
Loading…
Reference in New Issue
Block a user