From 85ba16545f486f879e84f01dc5003c2f6c3c1857 Mon Sep 17 00:00:00 2001 From: queue Date: Sun, 14 May 2017 22:26:44 -0600 Subject: [PATCH] es: fix highlighting without query term I like highlighting. --- nyaa/templates/search_results.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyaa/templates/search_results.html b/nyaa/templates/search_results.html index 23f9a40..8d6f9da 100644 --- a/nyaa/templates/search_results.html +++ b/nyaa/templates/search_results.html @@ -54,7 +54,7 @@ - {{ torrent.meta.highlight.display_name[0] | safe }} + {%if "highlight" in torrent.meta %}{{ torrent.meta.highlight.display_name[0] | safe }}{% else %}{{torrent.display_name}}{%endif%} {% if torrent.has_torrent %}{% endif %}