Search and feed page looks the same now
This commit is contained in:
@ -32,11 +32,12 @@ def create_html_for_search_results(
|
|||||||
feed_url: str = urllib.parse.quote(feed.url)
|
feed_url: str = urllib.parse.quote(feed.url)
|
||||||
|
|
||||||
html += f"""
|
html += f"""
|
||||||
<a class="text-muted text-decoration-none" href="/feed?feed_url={feed_url}">
|
<div class="p-2 mb-2 border border-dark">
|
||||||
<h2>{result.metadata[".title"]}</h2>
|
<a class="text-muted text-decoration-none" href="/feed?feed_url={feed_url}">
|
||||||
</a>
|
<h2>{result.metadata[".title"]}</h2>
|
||||||
{result_summary}
|
</a>
|
||||||
<hr>
|
{result_summary}
|
||||||
|
</div>
|
||||||
"""
|
"""
|
||||||
return html
|
return html
|
||||||
|
|
||||||
|
@ -4,7 +4,5 @@
|
|||||||
<div class="p-2 border border-dark text-muted">
|
<div class="p-2 border border-dark text-muted">
|
||||||
Your search for "{{ query }}" returned {{ search_amount.total }} results.
|
Your search for "{{ query }}" returned {{ search_amount.total }} results.
|
||||||
</div>
|
</div>
|
||||||
<div class="p-2 border border-dark text-muted">
|
{{ search_html | safe }}
|
||||||
{{ search_html | safe }}
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Reference in New Issue
Block a user