Skip to content

Commit

Permalink
Show title only if web_version
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Mar 11, 2023
1 parent 3fe629f commit df8c1b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libretranslate/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% for al in alternate_locales %}<link rel="alternate" hreflang="{{ al.lang }}" href="{{ al.link }}" />
{% endfor %}
{% if web_version %}
<title>LibreTranslate - {{ _h("Free and Open Source Machine Translation API") }}</title>
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<meta name="description" content="{{ _h('Free and Open Source Machine Translation API. Self-hosted, offline capable and easy to setup. Run your own API server in just a few minutes.') }}">
<meta name="keywords" content="{{ _h('translation') }},{{ _h('api') }}">

{% endif %}

<link rel="preload" href="{{ url_for('static', filename='icon.svg') }}" as="image" />
<link rel="preload" href="{{ url_for('static', filename='js/vue@2.js') }}" as="script">
<link rel="preload" href="{{ url_for('static', filename='js/materialize.min.js') }}" as="script">
Expand Down

0 comments on commit df8c1b4

Please sign in to comment.