diff --git a/README.md b/README.md index c4b5d15..78e798a 100644 --- a/README.md +++ b/README.md @@ -28,12 +28,14 @@ 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 -{% for page in pages %} -
-

{{ page.title }}

- {% if page.description %}

{{ page.description }}

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

{{ page.title }}

+ {% if page.description %}

{{ page.description }}

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