Skip to content

Commit 7f8f6be

Browse files
committed
Make the top search listing clickable
This is probably how it always have worked, but the main search listing looks like somethig that should be clicked on.
1 parent 9957fdf commit 7f8f6be

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

assets/js/controllers/search-lunr.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export function newSearchController() {
7272

7373
return {
7474
title: elem.innerText,
75+
id: item.ref,
7576
};
7677
});
7778

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
x-transition.duration.700ms>
4747
<template x-for="item in results">
4848
<li>
49-
<a x-text="item.title"></a>
49+
<a x-text="item.title" :href="`#${item.id}`"></a>
5050
</li>
5151
</template>
5252
</ul>

0 commit comments

Comments
 (0)