Adding the search functionality into the static site using Docify


View Source Code

This plugin is based on Tipue Search and enables the search capabilities for the static site.

Search will generate an index file containing the information about keywords and corresponding pages. This file will be loaded and parsed to provide search results based on the query.

Search results displayed on the page
Search results displayed on the page

Parameters

  • page-content-node - XPath HTML node to index content from (default //body)
  • search-page-layout - name of the layout to display search results in (default empty)
  • search-page-title - title of the search results page (default Search Results)

Usage

Insert the include where the search box should be displayed

Search box to input search query
Search box to input search query

<div>
{% tipue-search %}
</div>

Note the search result page set in the search-page-layout setting must also contain this include, otherwise results will not be displayed


Powered by Docify