web: Meta descriptions improvements
* Make source tree descriptions shorter * Make default title more descriptive * Add a short summary of results to ident search description
This commit is contained in:
parent
3f6aa021a7
commit
1762568c85
4 changed files with 19 additions and 8 deletions
|
|
@ -1,12 +1,23 @@
|
|||
{% extends "layout.html" %}
|
||||
|
||||
{% block title %}
|
||||
{{ searched_ident|e }} identifier - {{ current_project|capitalize }} source code {{ current_tag }} - Bootlin
|
||||
{{ searched_ident|e }} identifier - {{ current_project|capitalize }} source code {{ current_tag }} - Bootlin Elixir Cross Referencer
|
||||
{% endblock %}
|
||||
|
||||
{% block description -%}
|
||||
Elixir Cross Referencer - identifier references search for {{ current_project|capitalize }} (version {{ current_tag }}). Searched identifier: {{ searched_ident|e }}
|
||||
{%- endblock %}
|
||||
Elixir Cross Referencer - {{ searched_ident|e }} identifier references search for {{ current_project|capitalize }} {{ current_tag }}.
|
||||
{%- for section in symbol_sections -%}
|
||||
{%- if 'symbols' in section -%}
|
||||
{%- for type, symbols in (section['symbols'].items()) -%}
|
||||
{%- if (symbols|length) == 1 %}
|
||||
{{ section['title'] }} {{- ' as a '+type if type != '_unknown' else '' }} in {{ symbols[0].path }}.
|
||||
{%- else %}
|
||||
{{ section['title'] }} in {{ symbols|length }} files {{- ' as a '+type if type != '_unknown' else '' -}}: {{ symbols[0].path }}...
|
||||
{%- endif %}
|
||||
{%- endfor -%}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- endblock -%}
|
||||
|
||||
{% block main %}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
|
||||
<title>
|
||||
{% block title %}
|
||||
Elixir - Bootlin
|
||||
Bootlin - Elixir Cross Referencer
|
||||
{% endblock %}
|
||||
</title>
|
||||
<meta name="description"
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
{% extends "layout.html" %}
|
||||
|
||||
{% block title %}
|
||||
{{ title_path }} {{ current_project|capitalize }} source code {{ current_tag }} - Bootlin
|
||||
{{ title_path }} {{ current_project|capitalize }} source code {{ current_tag }} - Bootlin Elixir Cross Referencer
|
||||
{% endblock %}
|
||||
|
||||
{% block description -%}
|
||||
Elixir Cross Referencer - source file of {{ current_project|capitalize }} (version {{ current_tag }}). Browsed file: {{ '/' if path|length == 0 else path }}
|
||||
Elixir Cross Referencer - source code of {{ current_project|capitalize }} {{ current_tag -}} {{- '' if path|length <= 1 else ': ' + path[1:] }}
|
||||
{%- endblock %}
|
||||
|
||||
{% block main %}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
{% extends "layout.html" %}
|
||||
|
||||
{% block title %}
|
||||
{{ title_path }} {{ current_project|capitalize }} source code ({{ current_tag }}) - Bootlin
|
||||
{{ title_path }} {{ current_project|capitalize }} source code ({{ current_tag }}) - Bootlin Elixir Cross Referencer
|
||||
{% endblock %}
|
||||
|
||||
{% block description -%}
|
||||
{%- if path == '' -%}
|
||||
Elixir Cross Referencer - explore {{ current_project|capitalize }} {{ current_tag }} source code in your browser.
|
||||
{%- else -%}
|
||||
Elixir Cross Referencer - source tree of {{ current_project|capitalize }} (version {{ current_tag }}). Browsed path: {{ '/' if path|length == 0 else path }}
|
||||
Elixir Cross Referencer - source tree of {{ current_project|capitalize }} {{ current_tag -}} {{- '' if path|length <= 1 else ': ' + path[1:] }}
|
||||
{%- endif -%}
|
||||
{%- endblock -%}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue