hugomods / search

:mag: A powerful, flexible and responsive Hugo client side fuzzy search module.
https://hugomods.com/search/
MIT License
22 stars 11 forks source link

Add configuration for disabling search history #216

Closed nicokaiser closed 6 months ago

nicokaiser commented 6 months ago

After updating to v0.11 there is a new search history feature. While this is really nice, it might be required to completely disable this feature in some cases. In some environments it might not be desirable to save data in localStorage etc.

Setting the histories_count parameter to 0 does not help, since then the default (5) is applied. Setting the parameter to "0" (with quotes!) basically disables the history, but this is more like a hack to the problem.

razonyang commented 6 months ago

Make sense, available since v0.12.0.

params:
  search:
    histories: false
nicokaiser commented 6 months ago

Awesome, thank you!