There was an error while loading. Please reload this page.
1 parent 9957fdf commit 7f8f6beCopy full SHA for 7f8f6be
2 files changed
assets/js/controllers/search-lunr.js
@@ -72,6 +72,7 @@ export function newSearchController() {
72
73
return {
74
title: elem.innerText,
75
+ id: item.ref,
76
};
77
});
78
layouts/_default/baseof.html
@@ -46,7 +46,7 @@
46
x-transition.duration.700ms>
47
<template x-for="item in results">
48
<li>
49
- <a x-text="item.title"></a>
+ <a x-text="item.title" :href="`#${item.id}`"></a>
50
</li>
51
</template>
52
</ul>
0 commit comments