discourse / discourse-header-search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discourse Header Search Component

This component removes the search icon from the header menu and creates a search bar which is placed in the middle of the header area.

docs card filter preview

Optionally show external search icons

Use the extra_search_icons to show additional icons in the search bar.

This setting supports the following params:

  • prefix: the prefix to the search URL when clicking the respective icon
  • icon: icon to show, from the Font Awesome set (may need to be added to the svg icons setting as well)
  • target: optionally set to "_blank" to open the link in its own tab/window by default
  • showInCategories: category IDs where the given icon should be shown exclusively (by default, icon is shown everywhere)
  • excludeFromCategories: category IDs where the given icon should not be shown

About

License:MIT License


Languages

Language:JavaScript 64.3%Language:SCSS 28.6%Language:Handlebars 7.1%