-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch_results.html
More file actions
44 lines (43 loc) · 930 Bytes
/
search_results.html
File metadata and controls
44 lines (43 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html>
<head>
<title>Search Results</title>
<style>
body {
background-color: #28282B;
color: white;
}
h1 {
padding: 10px 15px;
}
ul {
font-size: 20px;
}
ul li {
margin-top: 15px;
}
a {
text-decoration: none;
color: #0803FF;
}
p {
font-size: 18px;
padding: 8px 24px;
}
</style>
</head>
<body>
<h1>Search Results</h1>
<hr>
<p>Showing results for "{{ query }}"</p>
{% if results %}
<ul>
{% for post in results %}
<li><a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% else %}
<p>No results found.</p>
{% endif %}
</body>
</html>