{% extends "base.html" %}

{% block content %}
<h1>Search Results for "{{ query }}"</h1>

{% if results %}
<ul>
    {% for result in results %}
    <li>
        <strong>{{ result.title }}</strong><br>
        <p>{{ result.snippet }}</p>
    </li>
    {% endfor %}
</ul>
{% else %}
<p>No results found.</p>
{% endif %}
{% endblock %}
