Files
site/themes/minimo/exampleSite/content/docs/search-support.md
2021-09-06 13:02:12 -04:00

1.5 KiB

date, lastmod, title, authors, categories, tags, slug, toc
date lastmod title authors categories tags slug toc
2018-07-05T20:00:00+06:00 2018-07-06T01:30:00+06:00 Search Support
muniftanjim
features
search
search-support true

Minimo supports the following clients for the search feature:

Follow the following steps for enabling search in your site.

Create Search Page

First of all, you'll need to create a search page.

Create a markdown file under /content/page/ directory with the filename search. If your site is multilingual, you can include language code in the filename. For example:

  • /content/page/search.md
  • /content/page/search.en.md

Add the following options in the frontmatter:

type: page
layout: search
outputs:
  - html
  - json

Select Search Client

For selecting the client for search feature, use the following options in your config.toml file:

[params.search]
client = ""
  • params.search [Map]:
    • client [String]: Name of the Search Client (supported values: algolia,fuse,lunr)

Client Specific Steps

The next steps are different for each search client:

  • [Algolia]({{< relref "/docs/search-algolia.md" >}})
  • [Fuse.js]({{< relref "/docs/search-fuse-js.md" >}})
  • [Lunr.js]({{< relref "/docs/search-lunr-js.md" >}})

After you complete those steps, you are good to go!

Add Search Widget

You might also want to add the [search widget]({{< relref "/docs/widgets.md#widget-search" >}}).