?query=search+query to the pages URL to search pages by file name or file content.
Add this snippet just before the
header.php file of your active layout to add the default search form:
<?= self::form('search'); ?>
These page conditional statements are available to quickly determine the type of page we are currently in:
trueif current page is a search results page.
These HTML classes will be added to the
<html> element that has a
has:query→ Will be added on search results page.