All repositories

astro-lunr

License

Lunr integration for Astro; client-side search for statically hosted pages.

2022-04-15 17:21 Multi-repo support; refactored astro-git and astro-lunr into independent plugins
Siver K. Volle adfedbe
2022-04-15 17:21 Multi-repo support; refactored astro-git and astro-lunr into independent plugins Siver K. Volle adfedbe
astro-lunr / server / renderer.js
13 lines (10 sloc) | 193 B
1
2 function check(Component, ...args){
3 return Component.startsWith("lunr-document");
4 }
5
6 function renderToStaticMarkup(){
7 return {html: " "}
8 }
9
10 export default {
11 check,
12 renderToStaticMarkup,
13 };