diff options
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r-- | fatcat_scholar/templates/about.html | 4 | ||||
-rw-r--r-- | fatcat_scholar/templates/base.html | 2 | ||||
-rw-r--r-- | fatcat_scholar/templates/help.html | 4 | ||||
-rw-r--r-- | fatcat_scholar/templates/search.html | 4 |
4 files changed, 13 insertions, 1 deletions
diff --git a/fatcat_scholar/templates/about.html b/fatcat_scholar/templates/about.html index 6831593..09867dc 100644 --- a/fatcat_scholar/templates/about.html +++ b/fatcat_scholar/templates/about.html @@ -1,5 +1,9 @@ {% extends "base.html" %} +{% block title %} +{% trans website_name = super() %}About {{ website_name }}{% endtrans %} +{% endblock %} + {% block main %} <h1>About Scholarly Search</h1> <p><i>See also: <a href="{{ lang_prefix }}/help">User Guide</a> which lists diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index 2ae131d..5f2fa62 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -9,7 +9,7 @@ {%- endif %} <title> {%- if settings.SCHOLAR_ENV != "prod" -%}[{{ settings.SCHOLAR_ENV|upper }}] {% endif -%} - {%- block title -%}scholar.archive.org{%- endblock %} + {%- block title -%}{% trans %}Internet Archive Scholar{% endtrans %}{%- endblock %} </title> <link rel="stylesheet" href="/static/scholar-semantic-ui.v2.4.2.min.css" diff --git a/fatcat_scholar/templates/help.html b/fatcat_scholar/templates/help.html index 3baeb30..75359c9 100644 --- a/fatcat_scholar/templates/help.html +++ b/fatcat_scholar/templates/help.html @@ -1,5 +1,9 @@ {% extends "base.html" %} +{% block title %} +{% trans website_name = super() %}{{ website_name }} Help{% endtrans %} +{% endblock %} + {% macro example_search_box(query) -%} <form class="" id="" action="{{ lang_prefix }}/search" method="get" role="search" aria-label="papers" itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction"> <meta itemprop="target" content="/search?q={q}"/> diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html index 86355e2..27b1676 100644 --- a/fatcat_scholar/templates/search.html +++ b/fatcat_scholar/templates/search.html @@ -14,6 +14,10 @@ <link rel="canonical" href="{{ lang_prefix }}/search"> {% endblock %} +{% block title %} +{% if query and query.q %}{{ query.q }} - {% endif %}{{ super() }} +{% endblock %} + {% block fullmain %} <!-- these hidden query fields should be *before* any form/button that could override them --> |