From 8d66d6c82da158d45c2a1f0dc1532b3bb6580666 Mon Sep 17 00:00:00 2001 From: TheAMM Date: Wed, 17 May 2017 11:27:54 +0300 Subject: [PATCH] Include search terms in page title Fixes #25 --- nyaa/templates/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyaa/templates/home.html b/nyaa/templates/home.html index 350cbb6..226e560 100644 --- a/nyaa/templates/home.html +++ b/nyaa/templates/home.html @@ -1,5 +1,5 @@ {% extends "layout.html" %} -{% block title %}Browse :: {{ config.SITE_NAME }}{% endblock %} +{% block title %}{% if search.term %}{{ search.term | e}}{% else %}Browse{% endif %} :: {{ config.SITE_NAME }}{% endblock %} {% block body %}