Added a configuration option for excluding certain pages from the results

This commit is contained in:
pontus.horn
2016-07-05 11:57:34 +02:00
parent 9a8972b599
commit 00056fde62
2 changed files with 18 additions and 1 deletions

View File

@@ -57,4 +57,13 @@ template file or on a specific page.
e.preventDefault();
});
</script>
```
```
## Configuration options
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:
```
$config['search_excludes'] = ['search', 'some/other/page'];
```