From 599047798a7369834c4e5d885bb49c61e895f4d7 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Thu, 29 Jul 2021 21:51:59 +0100 Subject: [PATCH] Remove "Home" from the home page's MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @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. --- src/furo/theme/furo/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/furo/theme/furo/base.html b/src/furo/theme/furo/base.html index fe4020023..245748b9c 100644 --- a/src/furo/theme/furo/base.html +++ b/src/furo/theme/furo/base.html @@ -42,7 +42,7 @@ {#- Site title -#} {%- block htmltitle -%} {% if pagename == master_doc %} - <title>{{ _("Home") }} - {{ docstitle|striptags|e }} + {{ docstitle|striptags|e }} {% else %} {{ title|striptags|e }} - {{ docstitle|striptags|e }} {% endif %}