Skip to content

search: add exact-match option #770

@postb99

Description

@postb99

Hello,

I just activated the dedicated search page (https://mcshelby.github.io/hugo-theme-relearn/basics/customization/#activate-dedicated-search-page) today and found it fun.

I'd like to add an option to inject number of typos to 0 into \static\js\search.js so that I could add a link from one page to /search.html?search-by=some&exact-match and the results page would only contain exact matches on search term. This way this does not seem complicated.

When reusing the just opened search page the exact-match parameter, when present, should be interpreted by page. This would give the best user experience. I add a link to search page from my site menu too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions