搜索

Hugo 搜搜模块

基于 Fuse.js 的强大的、灵活的和响应式的 Hugo 客户端模糊搜索模块。

功能特性

Fast

The demo site built with 10k posts (~30k pages), see also the GitHub Pages workflow.

Lightweight

~21kB in total with compressed and gzip enabled, of which CSS and JS are ~6kB and ~15kB respectively.

Fuzzy Search

Support fuzzy search on titles, summaries, headings and contents.

Lazy Loading

Loading the search indices on demand.

Responsive

Built-in responsive, theme-less UI and interactive logic.

Pagination

load more when scrolling to the bottom of results.

Highlighting

Highlighting the matches.

Statistic

Show the number of search results and search time.

Results navigation

and to navigate, to select.

Filters

Filtering results by languages, years, taxonomies and so on.

Sorting

Sorting results by score (best match) and date.

Shortcuts

Configurable shortcuts to search, close modal and so on.

Excluding

Allow excluding pages by setting the noindex page parameter as true.

RTL

Support RTL writing languages styles.