Add search feature using grep.
This commit is contained in:
21
templates/search.html
Normal file
21
templates/search.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block styles %}
|
||||
{{ super() }}
|
||||
<link rel="StyleSheet" href="/search.css" type="text/css" media="screen" />
|
||||
{% endblock styles %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<ul id="results">
|
||||
{% for result in results %}
|
||||
<li>
|
||||
<h2><a href="{{ relative_root | safe }}{{ result.page.url }}">{{ result.page.full_name }}</a></h2>
|
||||
{% for line in result.matches %}
|
||||
<p>{{ line | safe }}</p>
|
||||
{% endfor %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user