Upload files to "templates"
This commit is contained in:
18
templates/search_results.html
Normal file
18
templates/search_results.html
Normal file
@ -0,0 +1,18 @@
|
||||
{% 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 %}
|
Reference in New Issue
Block a user