lumeland / lume

🔥 Static site generator for Deno 🦕
https://lume.land
MIT License
1.85k stars 85 forks source link

Pagefind plugin #253

Closed oscarotero closed 2 years ago

oscarotero commented 2 years ago

Pagefind is a fully static search library that aims to perform well on large sites, while using as little of your users’ bandwidth as possible, and without hosting any infrastructure.

https://pagefind.app/

mskian commented 2 years ago

share more info about this plugin with example

oscarotero commented 2 years ago

Working on it here: https://github.com/lumeland/experimental-plugins/tree/main/pagefind

The default configuration will attach a search box automatically in your pages, with simply:

import lume from "lume/mod.ts";
import pagefind from "lume/plugins/pagefind.ts";

const site = lume();
site.use(pagefind());

export default site;

Currently you can see a example of the search box in the pagefind website:

image
mskian commented 2 years ago

Thank you :-)

mskian commented 2 years ago

disallow pagefind page from search engine

Disallow: /pagefind/

Because Webmaster tool spot this as Blocked due to access forbidden (403)