12 Commits

Author SHA1 Message Date
pontus.horn
ba5fabdfdc Don't manipulate $pages directly
Makes a Twig filter called apply_search available, which can be used in
templates to
filter the pages array on demand. Because of that, we can stop mutating
the pages array, which other extensions and themes may rely on.
2020-01-22 22:10:25 +01:00
pontus.horn
39ca6381dd Make search terms available to template 2019-06-14 23:44:04 +02:00
Pontus Horn
1adbcec56f Clarify search form example
Addresses #6, which highlights some confusion about the example search form.
This updates it to use the `link` filter used in Pico templates to render URLs
appropriate for the value of the `rewrite_url` config variable.
2019-06-14 23:08:36 +02:00
Pontus Horn
4ca2d559e5 Clarify search results template instructions 2017-09-08 12:45:57 +02:00
Pontus Horn
0cf5d2243e Clarify installation instructions 2017-09-06 11:52:51 +02:00
Pontus Horn af Rantzien
09597fa838 Update search results example in README.md 2016-11-13 22:20:01 +01:00
Christian Becher
62a7111643 Updated code example for results page
Otherwise, if no results found, twig produces an error message that breaks down the whole website/page.
2016-11-09 08:43:20 +01:00
pontus.horn
36fd7e1da8 Allow search without intercepting form submission in JS (#1) 2016-08-25 19:32:00 +02:00
Pontus Horn af Rantzien
d3aefe2b21 Add syntax highlighting to readme 2016-07-05 12:00:35 +02:00
pontus.horn
00056fde62 Added a configuration option for excluding certain pages from the results 2016-07-05 11:57:34 +02:00
pontus.horn
9a8972b599 Added documentation to readme 2016-06-21 16:04:54 +02:00
Pontus Horn af Rantzien
7368e3fd86 Initial commit 2016-06-20 17:19:56 +02:00