diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-03-18 18:17:53 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-03-18 18:17:53 +0100 |
commit | f34bdc68d742e41b98d44fff0b195185bb096452 (patch) | |
tree | 441e573622dd83534b25c086843724593b6efc96 /templates | |
parent | afaf7ef117b6f41cb6a9c2b14c2e4b5953925b24 (diff) |
Remove the query for None if there is no query
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/index.html b/templates/web/index.html index eb3567a..e6f66ee 100644 --- a/templates/web/index.html +++ b/templates/web/index.html @@ -5,7 +5,7 @@ {% block content %} <header> <h1><a href="{{ url_for('index') }}">{{ settings.name }}</a></h1> - <aside><form method="get" action="{{ url_for('search') }}"><input name="q" value="{{ q }}"><input type="submit" value="Search"></form></aside> + <aside><form method="get" action="{{ url_for('search') }}"><input name="q" value="{{ q if q }}"><input type="submit" value="Search"></form></aside> </header> <ul> {% for entry in entries %} |