diff --git a/template/search.twig b/template/search.twig index 2dfc291..38184cd 100644 --- a/template/search.twig +++ b/template/search.twig @@ -1,11 +1,28 @@ {% include 'header.twig' %} -
+
- {% for result in search_results %} + {% for post in search_results %} -
- {{ result.title }} +
+
+ {% if post.link|length > 0 %} + + {{ post.title }} + + {% else %} + + {{ post.title }} + + {% endif %} +
+ +
{% endfor %}