Skip to content

Commit

Permalink
Remove "Home" from the home page's <title>
Browse files Browse the repository at this point in the history
@feorlen pointed out that this doesn't interact well with how Chrome
handles page titles with hyphens in them:

> It's prefixed with "Home -" and for some reason Chrome homepage
> shortcuts only show the part before the hyphen.

@jdillard suggested that:

> I don’t think “Home” needs to be in the title of the page at all,
> that is more a breadcrumbs thing.

And we agreed. The document title for the root page should be
sufficent.
  • Loading branch information
pradyunsg committed Jul 29, 2021
1 parent 3fcf03f commit 5990477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/furo/theme/furo/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{#- Site title -#}
{%- block htmltitle -%}
{% if pagename == master_doc %}
<title>{{ _("Home") }} - {{ docstitle|striptags|e }}</title>
<title>{{ docstitle|striptags|e }}</title>
{% else %}
<title>{{ title|striptags|e }} - {{ docstitle|striptags|e }}</title>
{% endif %}
Expand Down

0 comments on commit 5990477

Please sign in to comment.