diff --git a/README.md b/README.md index 78e798a..de679db 100644 --- a/README.md +++ b/README.md @@ -28,14 +28,18 @@ Your template file (`search.html` in the above example) should contain something lists the pages matching the search (substitute `paged_pages` for `pages` if using Pico-Pagination): ```twig -{% if pages %} - {% for page in pages %} -
-

{{ page.title }}

- {% if page.description %}

{{ page.description }}

{% endif %} -
- {% endfor %} -{% endif %} +
+ {% if pages %} + {% for page in pages %} +
+

{{ page.title }}

+ {% if page.description %}

{{ page.description }}

{% endif %} +
+ {% endfor %} + {% else %} +

No results found.

+ {% endif %} +
``` Now, you should be able to visit for example `yoursite.com/search/foobar` (adjust path accordingly if putting search.md