local_search
local_search:
enable: false
preload: false # Preload the search data when the page loadsThis configuration item is used to set the website search function, which is very practical and is recommended to be enabled. When enabled, a search button will appear on the right side of the navigation bar in the header.

Search function configuration process:
Install the plugin
hexo-generator-searchdbin the root directory of the Hexo project.Add the following configuration items at the bottom of the Hexo configuration file
_config.redefine.yml.The value of the
local_search.enableconfiguration item in the theme configuration file_config.redefine.ymlis set totrue.::: tip The
local_search.preloadconfiguration item indicates whether to preload search data on page load. :::
Site-wide article search renderings:

Last updated