diff --git a/README.md b/README.md index f7f2e79..54cc995 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Template: search Your template file (`search.html` in the above example) should contain something like the following section, which lists the pages matching the search (substitute `paged_pages` for `pages` if using Pico-Pagination): -``` +```twig {% for page in pages %}

{{ page.title }}

@@ -44,7 +44,7 @@ in a sub-folder) and see the search results for "foobar" listed. How to design your search form is up to you, but here's a very rudimentary example which you can put either in a template file or on a specific page. -``` +```html
@@ -64,6 +64,6 @@ template file or on a specific page. You can exclude certain pages from being included in the search results by using the configuration option `search_excludes`. Set it to an array of pages you'd like to exclude, where each page is specified as its path relative to the content root: -``` +```php $config['search_excludes'] = ['search', 'some/other/page']; ```