uPagge / uBlogger

A template designed with your readers in mind :heart:
https://ublogger.netlify.app
MIT License
250 stars 101 forks source link

refactor(lunr): always perform a wildcard search #127

Open dezounet opened 3 years ago

dezounet commented 3 years ago
  1. Enable lunr:

    # config.toml
    [params.search]
      enable = true
      type = "lunr"
      contentLength = 4000
      snippetLength = 200
  2. Enable index.json generation by adding "JSON" entry to outputs.home:

    # config.toml
    [outputs]
      home = ["HTML","RSS", "JSON"]

Preview

With this PR

image

Before

image