Skip to content

Commit

Permalink
Make the top search listing clickable
Browse files Browse the repository at this point in the history
This is probably how it always have worked, but the main search listing looks like somethig that
should be clicked on.
  • Loading branch information
bep committed Sep 1, 2022
1 parent 9957fdf commit 7f8f6be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/js/controllers/search-lunr.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export function newSearchController() {

return {
title: elem.innerText,
id: item.ref,
};
});

Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
x-transition.duration.700ms>
<template x-for="item in results">
<li>
<a x-text="item.title"></a>
<a x-text="item.title" :href="`#${item.id}`"></a>
</li>
</template>
</ul>
Expand Down

0 comments on commit 7f8f6be

Please sign in to comment.