aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-22 14:21:34 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-22 14:21:34 -0700
commita508e8b4196d44c384fdc65924607022fdfe1fd2 (patch)
tree37611f9bb95314f21e954a6ea79f109a51fc4719
parentf931c67c3f0f51f352961db1c37af5998a332792 (diff)
downloadfatcat-scholar-a508e8b4196d44c384fdc65924607022fdfe1fd2.tar.gz
fatcat-scholar-a508e8b4196d44c384fdc65924607022fdfe1fd2.zip
html: better <title>
-rw-r--r--fatcat_scholar/templates/about.html4
-rw-r--r--fatcat_scholar/templates/base.html2
-rw-r--r--fatcat_scholar/templates/help.html4
-rw-r--r--fatcat_scholar/templates/search.html4
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 -->