Finds pages by search query.

0 stars out of 5

0 0 0 0 0
  • Author Taufik Nurrohman
  • Maintainer 1
  • Member
  • Version 2.0.0
Table of Contents
  1. Usage
  2. Conditions
  3. Classes


Append ?query=search+query to the pages URL to search pages by file name or file content.

Add this snippet just before the </header> in 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:

  • $site->has('query') → Return true if current page is a search results page.


These HTML classes will be added to the <html> element that has a class attribute:

  • has:query → Will be added on search results page.


No comments yet.