From 99ef81be9b471602b58c6bba9d0813b444c3e1aa Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 27 Sep 2021 19:05:13 -0700 Subject: [PATCH] Linter fixes --- bookwyrm/templates/opensearch.xml | 18 +++++++++++++++--- bookwyrm/views/wellknown.py | 1 + 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/bookwyrm/templates/opensearch.xml b/bookwyrm/templates/opensearch.xml index 50167144a..9582cdb79 100644 --- a/bookwyrm/templates/opensearch.xml +++ b/bookwyrm/templates/opensearch.xml @@ -1,11 +1,23 @@ {% load i18n %} {% load static %} - + BW - {% blocktrans with site_name=site.name %}{{ site_name }} search{% endblocktrans %} + {% blocktrans trimmed with site_name=site.name %} + {{ site_name }} search + {% endblocktrans %} UTF-8 - {% if site.favicon %}{% get_media_prefix %}{{ site.favicon }}{% else %}{% static "images/favicon.ico" %}{% endif %} + {% if site.favicon %} + {% get_media_prefix %}{{ site.favicon }}{% else %}{% static "images/favicon.ico" %} + {% endif %} diff --git a/bookwyrm/views/wellknown.py b/bookwyrm/views/wellknown.py index 6ece669ef..a30cfb9f0 100644 --- a/bookwyrm/views/wellknown.py +++ b/bookwyrm/views/wellknown.py @@ -131,6 +131,7 @@ def host_meta(request): """meta of the host""" return TemplateResponse(request, "host_meta.xml", {"DOMAIN": DOMAIN}) + @require_GET def opensearch(request): """Open Search xml spec"""